poi读取Excel的问题,求大虾
异常情况如下:
C:/Users/HELLOW/Desktop/考勤/001_2013_12_月统计表.xls
Exception in thread "main" java.lang.IllegalArgumentException: Your InputStream was neither an OLE2 stream, nor an OOXML stream
at org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.java:69)
at com.neusoft.common.util.ExcelReader.<init>(ExcelReader.java:34)
at com.neusoft.model.controller.test.main(test.java:11)
这是什么情况,没有识别出来文件吗?
我用office新建的.xls或是.xlsx文件都能读出来,咋业主给的报表就读不出来?这个报表可以正常打开的!