Blank rows/columns in exported file #2920
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#2920
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?
Exporting a file with the writeFile function will export a file with a specific size (depending on data), for example, 1.5MB.
Then if I enter the file via Excel and delete all blank rows after all data, it will degrade to 750KB.
Why? Is it possible to export the file without this file enlargement?
https://docs.sheetjs.com/docs/miscellany/errors/#generated-xlsx-files-are-very-large
For ZIP-based exports (XLSX / XLSM / XLSB / ODS), pass the option
compression: true
to enable compressionIt still the same behavior with this option
Can you share a more detailed example?
For example, "Input.xlsx" - 28KB - this file exported with "sheetjs"
File "Input-afterdelete.xlsx" - 16.5KB - same file after deleting all empty rows (155-1048576)
I see this behaviour with more big files, and it will be more problematic, for example:
From: 1.5MB - To: 750KB
From: 15MB - To: 4.5MB
Do you need something else?
You understand a problem?
Based on the sample, we need to revisit the ZIP compression