Error when opening a generated excel #3093
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#3093
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?
Hi SheetJS Team,
We have another question about the library.
We have a use case where we need to combine several generated sheets into one.
Basically, what I need is to put the contents of all the sheets in one sheet one below another.
The sheets were created on a WorkBook object using:
XLSX.utils.aoa_to_sheet (from an array of arrays)
XLSX.utils.table_to_sheet (from an HTML table element)
Then I work directly on the workbook object.
Add another name to SheetNames
Add another sheet object to Sheets
Iterate over the existing sheets and move the cells using the offset of the current sheet.
We use the t,v,z fields from cells for type, value and format
Then I clean up the Sheets object and SheetNames array.
It works, but when opening the excel file this error is shown (attached)
After clicking Yes, the content is open but the sheet name changes to RecoveredSheet1.
Can it be related to the fact that we directly manipulate the sheet object?
Is there a built in method to combine sheet contents vertically ?
NOTE: We also have a custom requirement to add dynamic data between the sheets.
So the output sheet should look like:
Sheet1 content
...
...
custom data
2 empty lines
Sheet2 content
...
...
Any help and information will be highly appreciated.
Thanks,
Evgeni
You can use
sheet_add_aoa
andsheet_add_dom
to build up worksheets.If you can share a sample file and a sample set of operations, we can take a closer look.