Currently it's not possible to change the header of table.
If you have an existing Excel file with a table, then the following code will write "Test" in ALL cells BUT the cell(s) which belong to a table header.
ExcelPackage package = new ExcelPackage(new FileInfo(@"C:\temp\template.xlsx"));
ExcelWorksheet sheet = package.Workbook.Worksheets[1];
for (int i = 1; i < 20; i++)
{
sheet.Cells[i, 2].Value = "Test";
}
package.Save();
Any chance to see a fix for this or at least a workaround?
Thanks
Comments: Fixed in changeset 3992e0ed4ed5
If you have an existing Excel file with a table, then the following code will write "Test" in ALL cells BUT the cell(s) which belong to a table header.
ExcelPackage package = new ExcelPackage(new FileInfo(@"C:\temp\template.xlsx"));
ExcelWorksheet sheet = package.Workbook.Worksheets[1];
for (int i = 1; i < 20; i++)
{
sheet.Cells[i, 2].Value = "Test";
}
package.Save();
Any chance to see a fix for this or at least a workaround?
Thanks
Comments: Fixed in changeset 3992e0ed4ed5