https://issues.apache.org/bugzilla/show_bug.cgi?id=54523
Bug ID: 54523
Summary: .xlsx files more then 80000 rows can not open in excel
(got "Excel found unreadable content" error)
Product: POI
Version: 4.0-dev
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: SXSSF
Assignee: [email protected]
Reporter: [email protected]
Classification: Unclassified
I use a simple script to generate 81000 rows in a .xlsx file,
then this file can not open in Excel 2010 with "Excel found
unreadable content" error. And I got CRC error when try to
decompress it with 7zip on windows.
And a .xlsx file with 80000 rows is ok...
scripts:
SXSSFWorkbook wb = new SXSSFWorkbook(100);
Sheet sh = wb.createSheet();
for (int i = 0; i < 81000; i++) {
Row row = sh.createRow(i);
for (int j = 0; j < 1000; j++) {
Cell cell = row.createCell(j);
cell.setCellValue("dddd");
}
if (i % 100 == 0){
System.out.println("x - " + i);
}
}
FileOutputStream out = new FileOutputStream(xlsx);
wb.write(out);
out.close();
wb.dispose();
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]