https://issues.apache.org/bugzilla/show_bug.cgi?id=56325
--- Comment #6 from Stanley Ni <[email protected]> --- Sorry, I forgot the mention the POI version I'm using. It is poi-3.10.1-2014-0818. And here is the exception I got: Caused by: java.lang.IndexOutOfBoundsException: Index: 12, Size: 6 at java.util.ArrayList.rangeCheck(ArrayList.java:571) at java.util.ArrayList.get(ArrayList.java:349) at org.apache.poi.hssf.record.ExternSheetRecord.getRef(ExternSheetRecord.java:164) at org.apache.poi.hssf.record.ExternSheetRecord.adjustIndex(ExternSheetRecord.java:168) at org.apache.poi.hssf.model.LinkTable.updateIndexToInternalSheet(LinkTable.java:419) at org.apache.poi.hssf.model.InternalWorkbook.removeSheet(InternalWorkbook.java:721) at org.apache.poi.hssf.usermodel.HSSFWorkbook.removeSheetAt(HSSFWorkbook.java:899) In my code, I called removeSheetAt(3). And there are 6 sheets in the file. I set print area and repeat rows on the last two sheets. -- 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]
