I am using Excel.dll which is the excel reader available online (not the Microsoft.Office.Intertop.Excel) to read the excel having multiple records
Here is my code-
Try
{
string path = "somelocalpath";
foreach (var worksheet in Workbook.Worksheets(path))
{
//Some code
}
}
catch (Exception e)
{
return false;
}
Here, I am getting exception on first iteration of Workbook.Worksheets(path). There is excel worksheet available at the give local path (The worksheet has three columns and three rows first of which is header row.).
Also, it was working with no errors some time back so as per my understanding, the issue is not with the code but may be the format of worksheet I am not sure.
Can someone please help me on this.