XLS BIFF8 export cannot be read by Numbers OSX #1188
Labels
No Label
DBF
Dates
Defined Names
Features
Formula
HTML
Images
Infrastructure
Integration
International
ODS
Operations
Performance
PivotTables
Pro
Protection
Read Bug
SSF
SYLK
Style
Write Bug
good first issue
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sheetjs/sheetjs#1188
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello,
I have an XLS file - I read it:
I don't even modify it - and write it back out:
The resulting file cannot be previewed/opened - if I save it with the
.xslx
extension it works.Have you dropped support for the
xls
format? Documentation suggests it is supported: https://docs.sheetjs.com/#supported-output-formatsI've added the bookType with
biff8
but still unviewable. I don't think the file I'm using is relevant.Thank you
Can you share that
amendments.xls
file? GH doesn't support XLS attachments so please send an email to support [at] sheetjs [dot] com and attach the fileHello - I've forwarded over. Let me know if you need any more information
Any updates? I'm facing the same issue on Numbers
@clicktravel-antonrand @guojiaqi1027 finally had a moment to dig further, this is a funny issue with a fortunately easy fix. If you'd like to submit this as a PR we'd accept:
Explanation: BIFF8 XLS, like other BIFF formats, ultimately stores the data and metadata as a stream of records. There are two officially recognized record types for the Dimensions record (which stores the worksheet dimensions):
0x200 = 512
(record enumeration table at https://msdn.microsoft.com/en-us/library/dd945945.aspx)0x000 = 0
(used in old Excel versions like Excel 3.0, see page 14 of http://www.idea2ic.com/File_Formats/excel_biff.pdf)For some reason, Numbers only accepts the first type but Excel accepts both. Version 0.12.1 added support for the
0
-type Dimensions record, which changed the export record type. The included change forces the 512 record type