mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #165] File size is very large comparing to OpenXML SDK generated #137
Labels
No labels
awaiting user feedback
bug
cmake
cmake
docs
feature request
in progress
long term
medium term
medium term
pull-request
question
question
ready to close
short term
under investigation
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/libxlsxwriter#137
Loading…
Add table
Add a link
Reference in a new issue
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?
Originally created by @igorko on GitHub (Apr 27, 2018).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/165
When using OpenXML SDK for generating xlsx, size is much smaller even when using 9 compression level in libxlsxwriter. Sheet.xml document size differs very much.
@igorko commented on GitHub (Apr 27, 2018):
The problem is that OpenXML sdk doesn't write row number and cell name in attributes (at least for inlineStr), so xlsx, generated by OpenXML is compressed better (in 3 times). Are row and cell names required attributes?
@jmcnamara commented on GitHub (Apr 27, 2018):
It is a design goal of libxlsxwriter that it replicates the OpenXML variant used by Excel to ensure compatibility and to allow testing against files created in Excel.
In general libxlsxwriter files are smaller than equivalent Excel files with the default zlib compression level.
@jmcnamara commented on GitHub (Apr 27, 2018):
I've had no reports of that. And when I run the following test program it works fine (although it is slow to load in Excel):
Here is the output file loaded in Excel.

If you have an example program that produces a corrupt file that Excel can't read that open up a new bug report issue.
BTW, the file produces by the above program is ~187MB. The same file saved by Excel is ~243MB.
Closing.