有什么方法可以让我获得 excel 连续显示的格式化值,而不是我从流中返回的原始值?
或者这是否属于“公式评估”类别,这不支持?
最佳答案
如果您有 Cell
您正在尝试从中获取数据,请尝试以下操作
DataFormatter formatter = new DataFormatter();
String formattedCellValue = formatter.formatCellValue(myCell);
如果这不能完全满足您的要求,
DataFormatter
中有许多不同的方法。可以解决问题的类。查看 API .
关于apache-poi - apache poi - XSSF 读取格式化的单元格值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18237828/