cellStyles: true
export is incompatible with LibreOffice #3099
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
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sheetjs/sheetjs#3099
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?
LibreOffice has lower constraint on column count, while export with
cellStyles: true
could always spam 16384 columns instead of min-max range.sheet1.xml
now contains a last column like this, for both Excel (max=16384) and LibreOffice (max=1024);<col min="11" max="16384" width="9" style="4" />
cellStyles: true
, now columns are spammed:(LibreOffice accepts max=16384, but not 16384 col entries)
A teammate raised a similar issue with LibreOffice 5 years ago: https://bugs.documentfoundation.org/show_bug.cgi?id=125380
To be absolutely sure, the following file with custom column widths is valid in Excel:
It contains 16384 column entries:
Since it is valid in Excel, it's almost certainly a bug in LibreOffice.
What version of LibreOffice are you using? Do you see the same error if you remove the last column entry?
7.3.7.2 from Ubuntu 22.04 (release at
08-Dec-2022 11:08
according to LibreOffice archive)A simple modification to
!cols
data (crop 1025-16384 col) before sheejs export does avoid error from LibreOffice.The LibreOffice issue is not exactly relevant and seems to be fixed:
<col min="11" max="16384" width="9" style="4" />
, but rejects 16384 individual cols. (not sure if the latter is intended or bug)Testing locally against 7.3.2.2, the spreadsheet opens properly. https://jsfiddle.net/27hpxvyL/ is a live demo to generate the spreadsheet.
LibreOffice shows a warning since it does not currently support 16384 columns:
After clicking "OK", a truncated version of the file opens.
You are likely encountering a bug in LibreOffice. Please raise an issue with them.
That said, we could add a special "LibreOffice" mode that enforces 1024 columns and tries to work around other LibreOffice bugs. Can you confirm that the software can handle 1024 col entries?