How to access an Excel file using EPPlus? The code seems to be fine ..
ViewBag.Message = "Cargar Almuerzos";
byte[] file = System.IO.File.ReadAllBytes(@"C:\MENÚ DEL 09 AL 13 DE MAYO.xls");
System.IO.MemoryStream ms = new System.IO.MemoryStream(file);
using (ExcelPackage package = new ExcelPackage(ms))
{
if (package.Workbook.Worksheets.Count == 0)
{
string error = "Your Excel file does not contain any work sheets";
}
}