Apache POI-HSSF vs POI-XSSF

ぐ巨炮叔叔 提交于 2019-12-07 20:47:07

问题


HSSF is the POI Project's pure Java implementation of the Excel '97(-2007) file format. XSSF is the POI Project's pure Java implementation of the Excel 2007 OOXML (.xlsx) file format.

Are there any export limitations when using HSSF?

I've once read somewhere that Excel '97 just supported <65.000 Entries.

Is it safe to use HSSF to export excel sheets with more than 65.000 Entries, or why would I use XSSF?


回答1:


As you can see here Excel 97 to 2003 supports a maximum of 65,536 rows. So no, with HSSF you won't be able to store more than 65536 entries. However you can do it with XLSX (Excel 2007+) which can handle up to 1,048,576 rows and can be saved using XSSF. It won't be compatible with Excel 97/2003 though.



来源:https://stackoverflow.com/questions/45936257/apache-poi-hssf-vs-poi-xssf

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!