Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
985
Excel
posted

Hello Infragistics team,

I am trying to use the Excel Library. I have an excel spreadsheet of more than 200,000 rows. It takes a very long time to load the excel file. Below is the code using the Microsoft.Office.Interop.Excel library to retrieve the column names in an excel worksheet:

workbook = excelApp.Workbooks.Open(fileName);
mWorksheet = (Microsoft.Office.Interop.Excel.Worksheet)workbook.Sheets[1];

range = mWorksheet.UsedRange;

for (int column = 1; column <= range.Columns.Count; column++)
{
MTOColumns.Add((range.Cells[1, column]).Value.ToString());
}

how to achieve the same using the Infragistics library? Is there a way to run Linq queries against the loaded worksheet? How to improve the performance of working with large files? 

Thank you very much

Parents Reply Children
No Data