Search code examples
c#.netwindowsepplus

Is there a Method on EPPLUS like get_item(index)


I want to convert my old code in C# to become a xlsx via EPPlus but i don't find any method like get_item(index) for example i can't convert this Code via Epplus:

private Microsoft.Office.Interop.Excel.Worksheet MyWorksheet;
MyWorksheet = (Microsoft.Office.Interop.Excel.Worksheet)MyWorkbook.Worksheets.get_Item(index);

Solution

  • Should be something like

    yourExcelPackage.Workbook.Worksheets[x] 
    

    where x starts with 1 (found this here on so)