You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have not been able to duplicate this with a new file or with some existing files but I have at least one that, when I use SetColWidth, creates entries for all 16,384 columns in the xl\worksheets\sheet1.xml file; I am certain this has to be happening for others as well.
Before updating the file, the <cols> tag only contains the columns that had been defined by the user.
After updating the file, the <cols> tag now contains 16,384 entries as follows:
On the surface, this is a minor annoyance because as soon as you open the file in Excel and save it, the extra columns are removed but when you are updating and emailing files as I am, the file size is larger than necessary. For example, using an empty version of the file I have that has this issue, the original file size is 12,345 bytes but after executing SetColWidth with no other changes, the file size it now 95,684 bytes.
Steps to reproduce the issue:
Using the Empty.xlsx file I have attached, execute the following code:
I have not been able to duplicate this with a new file or with some existing files but I have at least one that, when I use SetColWidth, creates entries for all 16,384 columns in the xl\worksheets\sheet1.xml file; I am certain this has to be happening for others as well.
Before updating the file, the <cols> tag only contains the columns that had been defined by the user.
After updating the file, the <cols> tag now contains 16,384 entries as follows:
On the surface, this is a minor annoyance because as soon as you open the file in Excel and save it, the extra columns are removed but when you are updating and emailing files as I am, the file size is larger than necessary. For example, using an empty version of the file I have that has this issue, the original file size is 12,345 bytes but after executing SetColWidth with no other changes, the file size it now 95,684 bytes.
Steps to reproduce the issue:
Using the Empty.xlsx file I have attached, execute the following code:
Describe the results you received:
As noted above, the saved file now has <cols> entries for all 16,384 columns.
Describe the results you expected:
The <cols> tag should only have entries for the the necessary/defined columns.
Output of
go version
:Excelize version or commit ID:
Environment details (OS, Microsoft Excel™ version, physical, etc.):
Empty.xlsx
The text was updated successfully, but these errors were encountered: