The workbook attached.
For sheet 1, "ws.InsertColumn(3, 1);" throws exception "ColumnMax can not span over existing column 10." while sheet 3 works correctly although they looks same.
Test case:
using (var pck = new ExcelPackage(template, false))
{
var ws = pck.Workbook.Worksheets[1];
ws.InsertColumn(3, 1);
pck.SaveAs(new FileInfo(output));
}
Comments: Please ignore the comment above, it won't help when insert more than 1 columns
For sheet 1, "ws.InsertColumn(3, 1);" throws exception "ColumnMax can not span over existing column 10." while sheet 3 works correctly although they looks same.
Test case:
using (var pck = new ExcelPackage(template, false))
{
var ws = pck.Workbook.Worksheets[1];
ws.InsertColumn(3, 1);
pck.SaveAs(new FileInfo(output));
}
Comments: Please ignore the comment above, it won't help when insert more than 1 columns