Blank sheets not included in SheetNames #292
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#292
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?
I have an Excel file where the first Sheet is simply an image.
Now calling:
console.log(Workbook.SheetNames)
Prints:
"INPUT DATA", "BURST PRESSURE RESULTS", "PASSIVE PHASE", "PASSIVE IMPEDANCE", "CHART COMPARISON", "OTHER RESULTS", "Calculations and Tables", "Shape Statistics Setup A", "Shape Statistics Setup B", "Sheet1"
My assumption is that Seal Summary is left out because it contains no cells. This would be fine, however when looping through SheetNames for 'INPUT DATA' I get the incorrect index.
This code gives me an index of '0' which follows the console printout above. Using that index via SheetNames[sheetNumber] accesses "Seal Summary". In my code above I have to increment my sheet_name in order to access the correct sheet.
It seems that there is an inconsistency between SheetNames and Sheets. Therefore when parsing SheetNames for a specific name will potentially lead to me accessing the wrong Sheet. Is there currently any workaround for this?
We pushed a change that now reads the underlying chartsheet data as worksheets with a special flag
!type
set to"charts"
. It should resolve the aforementioned issue, but we also need to support dialogsheet and macrosheet (Excel 4 Macros), so will keep issue open