When more than 1,500 rows are written to an Excel spreadsheet using XSSF, the
exception below happens.
I'm calling autoSizeColumn() after writing all data to the workbook.
Any ideas on this?
Thanks,
Emer
java.lang.ArrayIndexOutOfBoundsException: -32767
at java.util.ArrayList.get(ArrayList.java:324)
at org.apache.poi.xssf.model.StylesTable.getFontAt(StylesTable.java:200)
at
org.apache.poi.xssf.usermodel.XSSFWorkbook.getFontAt(XSSFWorkbook.java:719)
at
org.apache.poi.xssf.usermodel.XSSFWorkbook.getFontAt(XSSFWorkbook.java:67)
at org.apache.poi.ss.util.SheetUtil.getCellWidth(SheetUtil.java:114)
at org.apache.poi.ss.util.SheetUtil.getColumnWidth(SheetUtil.java:219)
at
org.apache.poi.xssf.usermodel.XSSFSheet.autoSizeColumn(XSSFSheet.java:337)
at
org.apache.poi.xssf.usermodel.XSSFSheet.autoSizeColumn(XSSFSheet.java:320)
--
View this message in context:
http://apache-poi.1045710.n5.nabble.com/ArrayIndexOutOfBoundsException-from-autoSizeColumn-when-writing-1-500-rows-to-XSSFWorkbook-tp5712347.html
Sent from the POI - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]