Hello all,
I thought that iterating over columns is appropriate way to do this, however it throws a ArgumentOutOfRangeException when I try to access Columns property in a worksheet that is empty.
static void Main()
{
ExcelEngine engine = new ExcelEngine();
IWorkbook workbook = engine.Excel.Workbooks.Open("c:\\empty.xls");
IWorksheet worksheet = workbook.Worksheets[0];
Console.WriteLine(worksheet.Columns);
}
Thanks,
Andrzej
empty0.zip