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...
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,
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.