Summary: | Can't open wookbook with MS Excell | ||
---|---|---|---|
Product: | POI | Reporter: | Duc Nguyen <duc.nguyen> |
Component: | HSSF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | duc.nguyen |
Priority: | P2 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Linux | ||
Attachments: | origin workbook |
Description
Duc Nguyen
2008-06-05 01:32:11 UTC
Created attachment 22076 [details]
origin workbook
Fixed in svn r663855. Looks like the fix for bug 41242 wasn't exactly right. The EndSubRecord was being skipped because its 'sid' is zero, and RecordInputStream assumes that all 'sid's are non-zero. The main change with the fix here was to add padding to the sub-record data. It seems to be padded to a 4-byte boundary even though this is not mentioned in the "MICROSOFT OFFICE EXCEL 97-2007 BINARY FILE FORMAT SPECIFICATION" (OOO document doesn't even include the OBJ(5Dh) record). Bug fixed. Thanks so much. |