0x45
0x45

Reputation: 819

Apache POI-HSSF vs POI-XSSF

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?

Upvotes: 15

Views: 20681

Answers (1)

BackSlash
BackSlash

Reputation: 22233

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.

Upvotes: 22

Related Questions