medo ampir
medo ampir

Reputation: 1910

Epplus 5.6: how to ignore a row when Exporting ToDataTable

in this code i'm importing data from excel worksheet to a datatable using Epplus 5.6.4

 using(var report = new ExcelPackage(report_path))
    {    
      var x_sheet = report.Workbook.Worksheets["sheet1"];
      var dt_x_sheet = x_sheet.Cells["A:F"].ToDataTable();
    }

I'm getting the following error:

System.InvalidOperationException: 'Value cannot be null, row: 474, col: 5

Upvotes: 1

Views: 576

Answers (1)

swmal
swmal

Reputation: 269

This was a bug in EPPlus and has been fixed in 5.7.

Upvotes: -1

Related Questions