java解析excel文件出错jxl.read.biff.BiffException: Unable to recognize OLE stream

来源:互联网 发布:酒店业数据 编辑:程序博客网 时间:2024/06/05 20:16
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:268)


at jxl.Workbook.getWorkbook(Workbook.java:253)
at com.excel.bean.test1.xls2String(test1.java:19)

at com.excel.bean.test1.main(test1.java:40)



原因:不支出读取 excel 2007 文件(*.xlsx)。只支持 excel 2003 (*.xls)。

换成POI来解析吧

1 0
原创粉丝点击