https://issues.apache.org/bugzilla/show_bug.cgi?id=47199
Josh Micich <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #9 from Josh Micich <[email protected]> 2009-05-22 11:07:16 PST --- It seems like you are going with the debugging approach. (In reply to comment #8) > How do I get the sheet name? I have searched in the code but not able to get > the sheet. At stack frame (HSSFWorkbook.java:288), you can see the number of already loaded sheets with "_sheets.size()". This also happens to be the index to the sheet currently being constructed, so that sheet name can be observed with: workbook.getSheetName(_sheets.size()); > In Sheet.java : > I have tried to print the "recSid" the value is coming as 41 (Dec) and 0x0029 > (hex). That sid corresponds to BottomMarginRecord. We are going to need more information than this (see Comment 7). Basically we need the list of records (found within RecordStream rs) starting from the records that the _psBlock has, all the way through to the current record (seems to be BottomMarginRecord) and a little further, just to make sure there are no more PSB records after that. I guess that execution was at line 234 when you made this observation. That's an important detail to clarify too. > the value for " _psBlock != records.get(prevPsbIx) " is coming as true in my > case, Is it correct or we have to use equals method for comparing the objects. Did you try out your suggestion "!_psBlock.equals(records.get(prevPsbIx))"? -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- 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]
