Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all articles
Browse latest Browse all 88150

Loading xls with EPPlus

$
0
0

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?


Viewing all articles
Browse latest Browse all 88150

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>