EPPlus 4.1.1 Error CS0103 when creating ExcelPackage

1

I'm getting this error when creating ExcelPackage and I can not find why.

  

Error CS0103

     

Unable to find the requested value 'baseline'. "

var info = new FileInfo(RutaArchivo);

using (ExcelPackage pck = new ExcelPackage(info)) 
// El pck inicia una excepcion

// pck.Workbook.Worksheets  'pck.Workbook.Worksheets' inició una excepción de tipo 'System.NullReferenceException'{System.NullReferenceException}
{

// Exception.Message = No se puede encontrar el valor solicitado 'baseline'."

ExcelWorksheet worksheet_Excel = pck.Workbook.Worksheets.First(); 
// pck.Workbook.Worksheets error CS0103: El nombre 'pck' no existe en el contexto actual    
if (worksheet_Excel != null)
{
}
}
    
asked by Alan Labrunee 14.12.2017 в 19:25
source

0 answers