On Tue, 16 Sep 2008, Dave Madole wrote:
(As far as I can tell the only way I¹ll be able to figure out what sheet I¹m in using the event model is to add up the bytes and compare it to a table I built from the offsets in the BoundSheetRecord records when I read them. If there¹s a simpler way--and I hoper there is--this email is moot, although the stack overflow seems like a potential problem.)
Each sheet's data is started with a BOFRecord. You could sort the BoundSheetRecords by the order of their field_1_position_of_BOF entries, then track the BOFRecords of type WORKSHEET
I get a stack overflow if I put ³getRecordSize()² in the processRecord method while modifying the XLS2CSVmra example app.
What's the record you're trying to find the size of? (Should be the bottom one in the stack trace). In theory most of them should be fine to call getRecordSize(), but possibly not all, especially those with whacky continue records
Nick
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
