Quantcast
Channel: Excel Data Reader - Read Excel files in .NET
Viewing all articles
Browse latest Browse all 448

Created Unassigned: Missing cell values after empty lines in a binary sheet [12648]

$
0
0
first cell after an empty row in binary .xls file is not detected.

__Reason :__
Too many calls to m_stream.Read();

__Patch :__

```
private bool moveToNextRecordNoIndex()
{
//seek from current row record to start of cell data where that cell relates to the next row record
...
m_currentRowRecord = rowRecord;
//m_depth = m_currentRowRecord.RowIndex;

int Memo_Read_Position = m_stream.Position; // Store current read position [jerome.raffalli]
//we have now found the row record for the new row, the we need to seek forward to the first cell record
XlsBiffBlankCell cell = null;
do
{...} while (cell == null);

// if searched row is < found row, remember to cancel previous reads [jerome.raffalli]
bool Cancel_Read = (m_depth < cell.RowIndex);

m_cellOffset = cell.Offset;
m_canRead = readWorkSheetRow();

// restore read position [jerome.raffalli]
if (Cancel_Read) m_stream.Seek(Memo_Read_Position, SeekOrigin.Begin);

//read last row

```

Viewing all articles
Browse latest Browse all 448

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>