On Mon, 24 Sep 2007, Yegor Kozlov wrote:
I think a better idea is to lookup the sheet in the HSSFWorkbook.sheets collection. Given a HSSFSheet finding its index looks as follows:
Yup, that'd work to
The point that HSSFSheet doesn't have a reference to the owning HSSFWorkbook. If we add it, the fix is trivial.
It already has a reference to model.Workbook, which is almost but not quite good enough :/
We could easily change HSSFSheet so you pass in a HSSFWorkbook rather than a Workbook, then grab out the Workbook in the constructor, and save both.
Shall we go for that? Nick --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
