question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

XLS without rows?

See original GitHub issue

I 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 Indexand 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 moveToNextRecordNoIndexhalts founding EOF at 2745144.

To bypass the error you need to change readWorkSheetGlobalsas 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:closed
  • Created 7 years ago
  • Comments:15

github_iconTop GitHub Comments

1reaction
appel1commented, Jul 8, 2016

Ok, a bit difficult without a sample to test with. 😃

1reaction
appel1commented, Jul 7, 2016

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found