我使用Apache-POI "XSSF和SAX事件API“导入Excel文件。
我正在使用Apache-POI解析原始值,我想问一下,如何才能像Excel-GUI对Cell-Editor所做的那样对这些原始值进行舍入。下面的例子说明了这个问题:
Raw: 1.9210999999999999E-2 (value is stored like this in xlsx-file)
Edit: 1.9211% (user sees this value in excel cell-editor)
View: 1.92%
我正在通过POI读取包含一些行的Excel文件。我必须删除文件的行,如果它被正确地保存在数据库中。
直到几天前,我还在使用.xls文件(HSSFSheet),一切工作正常。
现在,我需要.xls文件256列中的更多列,然后将其更改为XSSFSheet。但是当我使用它时,我得到了这个错误:
java.lang.RuntimeException: not implemented yet
at org.apache.poi.xssf.usermodel.XSSFEvaluationWorkbook.getExternalSheetIndex(XSSFEvaluationWorkbook.java:1
目前,我正在使用Apache POI读取excel文件(.xlsx),但在传递数据流时,在XSSFWorkbook实例化过程中遇到异常。下面是遇到的异常。 Apache Poi版本: 4.0.1 Exception in thread "main" org.apache.poi.ooxml.POIXMLException: error: The document is not a theme@http://schemas.openxmlformats.org/drawingml/2006/main: document element namespace mismatch ex