How to get the range of Rows and Columns in Excel workbook ?
New DiscussionI am using the following code to import data from xlsx file:
Infragistics.Documents.Excel.Workbook.Load(Path to File);
Now, I want to show this workbook into an ultra grid, therefore, I read the worksheet cell by cell and then store in a data table, and then bind that to ultra grid. But to read that workbook cell by cell, I need to know the maximum number of rows and columns in the worksheet. To some extent I achieved this bu using nested loops, but suppose if the excel sheet has 9 rows and 9 columns but they do not start from a1 instead the rows extend from f10 to n10, and columns extend from f10 to f18, what should I do in this case ?
Sign In
to post a reply
Replies
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Favorites
0 Replies
1 Created On
Jul 31, 2014 Last Post
11 years, 7 months ago