XLS without rows?
See original GitHub issueI have an XLS structured as:
DIMENSIONS at 1295496
ROW at 1295516
LABELSST at 1295530
...
LABELSST at 1295530
LABELSST at 2745118
WINDOW2 at 2745140
EOF at 2745144
1637 at 2745173
It means no Index
and starting with Dimensions
(and it is not a problem) but without rows, only shared strings.
Has anyone idea how to load such a file?
The Library handles only the first row, even if Excel shows thousands of rows 😃
That’s because moveToNextRecordNoIndex
halts founding EOF at 2745144
.
To bypass the error you need to change readWorkSheetGlobals
as follows:
XlsBiffRecord trec = rec; // <<< init to previously read record
XlsBiffDimensions dims = null;
do
{
if (trec.ID == BIFFRECORDTYPE.DIMENSIONS)
{
dims = (XlsBiffDimensions)trec;
break;
}
trec = m_stream.Read(); // <<< first check, then read next record
} while (trec != null && trec.ID != BIFFRECORDTYPE.ROW);
I’m wonder how read this binary Excel file… For privacy reason I’m going to modify binary data and I’ll upload a test case ASAP.
Thanks for helping me.
Issue Analytics
- State:
- Created 7 years ago
- Comments:15
Top Results From Across the Web
How to show gridlines in Excel; hide (remove) lines
One reason that grid lines are not showing is that background has been set to white. Select whole sheet, click TLH corner. In...
Read more >Hide everything but the working area in an Excel worksheet
Hiding columns and rows in Excel · 1. Click any cell in the first unused row above the work area and press Shift...
Read more >Hide or show rows or columns
How to hide and unhide columns and rows in an Excel worksheet. Restrict access to only the data you want to be seen...
Read more >How to get Excel to open without so many rows and columns
To select a specific complete row, you have to press the shortcut key Shift + Spacebar. It is very easy if you want...
Read more >How To Delete Blank Rows At Bottom Of Excel - 2436 - YouTube
"My spreadsheet must be haunted" is a great opening line to an Excel question sent in just before Halloween. You have 1510 rows...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok, a bit difficult without a sample to test with. 😃
I’ve made a small attempt at implementing support for Excel files without ROW records. In your case, is it that there are no ROW records or only one when there are in fact more than one rows?