On Mon, 24 Mar 2008, Andy Ch wrote:
BoundSheetRecord does have method that gets the BOFRecord offset, if i obtain the offset of each sheet, then sort the offset. can i safely assume that the BOFRecord i encountered would be in that sequential order as the sorted (ascending) offset?

That should be fine. The other option is to track the byte count as you make your way along, and when you get to the offset specified in the BoundSheetRecord, you're there. However, sorting by the offset then matching that way seems to me as likely to be ok.

(Or, the other way around - scan along to the BOFRecord tracking the bytes so far. When you find one, loop over the BoundSheetRecords until you get to one that specifies the offset you're at, then you know what sheet you have)

Nick

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

Reply via email to