On Sat, 22 Sep 2007, Yegor Kozlov wrote:
When we access a sheet from HSSFWorkbook we should remember its index. There are lots of places where the sheet index is involved including HSSFWorkbook.cloneSheet() and HSSFWorkbook.setSheetOrder(String sheetname, int pos). All of these should be covered.

It might be less work to tell the sheet its name? You can then get the sheet index if you need it (via a workbook.getSheetIndex(name) call), and we only need to update things in workbook.setSheetName. My hunch is that reorganising it so that a sheet knows its index might be good, but it would take a lot more work

I could code this up very quickly, if people are happy with it?

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to