Discussion [https://exceldatareader.codeplex.com/discussions/474291](https://exceldatareader.codeplex.com/discussions/474291)
I am trying to read in a large amount of data using your wonderful tool, which is ideal.
The problem is that the xlsx file in question has presumably been generated by a tool, as unless you manually open and then save and close the file, the ExcelDataReader will only read in the first column.
There are in fact 13 columns, but the first 2 rows are merged.
Having looked at the source code and stepped through, I can see that while reading the rows in, the array to hold the values is 1 in size, so all the following values are not saved, even though they are read in.
Any help would be much appreciated. :)
Comments: ** Comment from web user: TMVector **
I am trying to read in a large amount of data using your wonderful tool, which is ideal.
The problem is that the xlsx file in question has presumably been generated by a tool, as unless you manually open and then save and close the file, the ExcelDataReader will only read in the first column.
There are in fact 13 columns, but the first 2 rows are merged.
Having looked at the source code and stepped through, I can see that while reading the rows in, the array to hold the values is 1 in size, so all the following values are not saved, even though they are read in.
Any help would be much appreciated. :)
Comments: ** Comment from web user: TMVector **
I apologize. I mis-pasted the first code sample, and automatically pressed Ctrl-S before I had proof-read.
Here is the modified code to modify the column dimension
```
...
if (col <= _cellsValues.Length)
_cellsValues[col - 1] = o;
else
{
//If the column number is larger than the dimension given at the top of the sheet, then we need to expand dynamically
sheet.Dimension.LastCol = col;
Array.Resize(ref _cellsValues, sheet.ColumnsCount);
_cellsValues[col - 1] = o;
}
...
```