POI读取excel时报错
< 返回列表时间: 2014-07-23来源:开源中国
HDC调试需求开发(15万预算),能者速来!>>>
读excel时,new一个workbook时就出错了,workbook = new HSSFWorkbook(inStream);
报错信息:
java.lang.RuntimeException: Unexpected record type (org.apache.poi.hssf.record.DefaultRowHeightRecord) at org.apache.poi.hssf.record.aggregates.RowRecordsAggregate.<init>(RowRecordsAggregate.java:97) at org.apache.poi.hssf.model.InternalSheet.<init>(InternalSheet.java:172) at org.apache.poi.hssf.model.InternalSheet.createSheet(InternalSheet.java:127) at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:291) at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:243) at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:187) at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:322) at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:303) ...



奇怪的是,该excel打开另存一下就可以了,有谁知道这个怎么回事么?谢谢


热门排行