jxl.read.biff.BiffException: Unable to recognize OLE stream

今天用jxl搞excel导入,读取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.ei.test.myExcel.main(myExcel.java:108)

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

解决:把文件 "另存为:excel03格式的。

你可能感兴趣的:(JXL,excel导入)