org.apache.poi.hssf.record.RecordFormatException:找不到WINDOW2

时间:2018-08-10 10:49:47

标签: java apache-poi

df.columns.tolist()

下面是异常堆栈跟踪,

InputStream isXls         = new FileInputStream("machine_operator_report.xls");
HSSFWorkbook workbookOld  = new HSSFWorkbook(isXls);

我已经尝试过堆栈中提供的所有解决方案以进行转换 Exception in thread "main" org.apache.poi.hssf.record.RecordFormatException: WINDOW2 was not found at org.apache.poi.hssf.model.InternalSheet.<init>(InternalSheet.java:340) atorg.apache.poi.hssf.model.InternalSheet.createSheet(InternalSheet.java: 157) at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init> (HSSFWorkbook.java:359) at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init> (HSSFWorkbook.java:405) at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init> (HSSFWorkbook.java:386) at Xls2Xlsx2.main(Xls2Xlsx2.java:235) HSSFWorkbook,但是执行代码时出现上述异常。我要转换为XSSFWorkbook的{​​{1}}也包含图。

如果您能为此提供帮助,它将对我有很大帮助!!谢谢

0 个答案:

没有答案