I'm using the following code to load the xls
file.
public static Excel LoadExcel(string path)
{
FileInfo file = new FileInfo(path);
ExcelPackage ep = new ExcelPackage(file);
Excel xls = new Excel(ep.Workbook);
return xls;
}
I'm invoking the above code as follows,
Excel xls = LoadExcel(excelPath);
I'm running this code in Android. The file loads as I tried to check if the file exists. But, the xls is not being loaded at all. If I try to print xls.Tables.Count()
, it is just empty. what am i missing?