JaBratsch / excellibrary

Automatically exported from code.google.com/p/excellibrary
0 stars 0 forks source link

PopulateDataTable cols / rows is reversed #8

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The LastColIndex/ LastRowIndex are reversed. Here's the correct code:

DatasetHelper.PopulateDataTable:
..
            // Extract columns
            for (int i = 0; i <= Cells.LastColIndex; i++)
                dt.Columns.Add(Cells[0, i].StringValue, typeof(String));

            // Extract data
            for (int currentRowIndex = 1; currentRowIndex <= 
Cells.LastRowIndex; currentRowIndex++)
            {
..

Original issue reported on code.google.com by marco.di...@gmail.com on 11 Feb 2009 at 9:33

GoogleCodeExporter commented 8 years ago
thanks. fix at r17

Original comment by jetcat on 12 Feb 2009 at 3:26