Summary: | [Patch] Header and Footer Records fix? | ||
---|---|---|---|
Product: | POI | Reporter: | Shawn Laubach <shawn.laubach> |
Component: | HSSF | Assignee: | POI Developers List <dev> |
Status: | CLOSED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Hardware: | Other | ||
OS: | other |
Description
Shawn Laubach
2002-03-18 17:02:47 UTC
Some context from poi mailing list: Are you sure that the header and footer records are 100% accurate. Whenever I run Biff Viewer and look at the records, it cuts the last two characters off. Also, the length for the strings seem to be 3 less than the length for the record. 1 byte for the length of the string, x number of bytes for the string, and 2 bytes for what. In all the Excel files I looked at, the two bytes after the string length are nulls. I'm needing to insert headers and footers so I wrote some code that updated the record and got some trailing gibberish. After playing around, I made the record insert the two null bytes after the string length. Updated all the places then can happen and everything seemed to work. If you think that this understanding of the record is valid, I'll send the patches for the code. BTW, the unsigned byte problem occurs in the headers and footers. I fixed this also. Hrrm this bug seems to have been applied. BTW, when summitting patches. Attach them. Avoids wrapping problems. Confirmed that this patch has been applied, however no one has any memory of the event. Closing. |