This project has moved. For the latest updates, please go here.

Error when adding table

Jan 12, 2016 at 5:30 AM

The following code worked in 4.0.4, but an error occurs in 4.0.5:
ExcelPackage pck = new ExcelPackage();
ExcelWorksheet ws = pck.Workbook.Worksheets.Add("Test");
OfficeOpenXml.Table.ExcelTable tbl = ws.Tables.Add(new ExcelAddress(1, 1, 2, 2), "");
The error is: Range does not belong to worksheet. Parameter name: Range