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

New Post: Excel sheet to array

$
0
0
SHAME ON ME! I got the answer right in front of my eyes. I forgot to declare the size of the array.
            rows = ds.Tables[0].Rows.Count;
            cols = ds.Tables[0].Columns.Count;

            __DataFromExcel = new object[rows, cols];__
            int row=0;
            while (excelReader.Read())
Sorry for wasting your time.

Mike.

Viewing all articles
Browse latest Browse all 448

Trending Articles