Reputation: 1910
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