Column Count is wrong unless I manually adjust column width

I'm using version 4.7 of Aspose.cells. I've noticed that when I create an excel file with the headers of the default size the column count is not reported correctly.

If I change the size in each cell, the column count comes in correctly.

Is this bug fixed in version 4.8? I'm just trying to determine if I should upgrade or not...

Thanks

Hi,

Thank you for considering Aspose.

Well, Cells.Columns.Count gives you the sum of those columns which are initialized. For your info, the Cells.Columns.Count would not include the columns with default width (8.43), so, it might possible that it will not give you your desired results. I think you should use Cells.MaxDataColumn to get the farthest column index (0 based) that has data in it for your requirement.

Thank You & Best Regards,