java代码读取excel文件时报:
jxl.read.biff.BiffException: Unable to recognize OLE stream
at jxl.read.biff.CompoundFile.<init>(CompoundFile.java:116)
at jxl.read.biff.File.<init>(File.java:127)
at jxl.Workbook.getWorkbook(Workbook.java:221)
at jxl.Workbook.getWorkbook(Workbook.java:198)
at com.excel.service.PHSampleService.getAllByExcel(PHSampleService.java:25)
at com.excel.control.PHSampleControl.main(PHSampleControl.java:11)
查资料得出原因:JAVA可以利用jxl简单快速的读取文件的内容,但是由于版本限制,只能读取97-03 xls格式的Excel。不支出读取 excel 2007 文件(*.xlsx)。
时间: 2024-11-05 13:31:00