I have this method that is called twice:
CreateExcelHeader(ExcelWorksheet ws, ref string aExcelHeader, ref int iColumn, int iRow)
The second time in this method I try to get a column count:
iColumn = ws.Columns.Count;
I’m returned ZERO.
I’m not getting any error or warnings when I call the method the second time. The previous time I do an
I reopen the Excel file again to be sure the data is saved.
What am I doing wrong?