Problem opening exported ODS files in Excel #2425
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#2425
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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?
When I export a table as an ODS file and then try to open that file in Excel in editing mode I get the following error:
"We found a problem with some content in myfilename.ods. Do you want us to try to recover as much as we can? If you trust the source of this workbook, click Yes."
Clicking Yes results in the following message and the file opening correctly "Excel was able to open the file by repairing or removing the unreadable content."
Are there any known solutions or workarounds to this problem?
Recreating the problem
This occurs on the table export demo, so can be seen by going to https://sheetjs.com/demos/table.html, click export to ODS, open the downloaded file in Excel.
For ODS we check against LibreOffice. To make it work with Excel, it looks like a master page style is needed. We:
uncomment the part in https://github.com/SheetJS/sheetjs/blob/master/bits/81_writeods.js#L164 to force
style:master-page-name="mp1"
in the table styleadd a predetermined master page style. https://github.com/SheetJS/sheetjs/blob/master/bits/81_writeods.js#L16 should have a style like