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

Created Unassigned: First row always skipped (CreateBinaryReader, AsDataSet) [12647]

$
0
0
when reading a .xls (binary) file, the first row is missing in the returned datatables, even if IsFirstRowAsColumnNames=false

__reason__ :
in method 'readWholeWorkSheetNoIndex', line : justAddedColumns = true; is not at the right place

__Patch__ :
```
if (triggerCreateColumns)
{
if (_isFirstRowAsColumnNames || (_isFirstRowAsColumnNames && m_maxRow == 1))
{
for () {...}
justAddedColumns = true; // added by jerome.raffalli
}
else {...}
triggerCreateColumns = false;
// justAddedColumns = true; // removed by jerome.raffalli
table.BeginLoadData();
}

```

Viewing all articles
Browse latest Browse all 448

Trending Articles



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