tfussell / xlnt

:bar_chart: Cross-platform user-friendly xlsx library for C++11+
Other
1.5k stars 423 forks source link

Strange issue with column widths #469

Open tlouwers opened 4 years ago

tlouwers commented 4 years ago

I have been trying to create sheets with formatting, in which some columns have specific widths. I noticed that when opening the created workbooks in Excel act strange regarding column widths: if I set a particular column to a non-default column width (for instance: 4), and I use Excel to right-click on the column, then click ok (accept whatever value is in the popup), all columns are resized to that value. I cannot undo this action: it will only reset all column widths to the Excel default (it seems).

The thing is that workbooks generated by Excel itself, or LibreOffice Calc do not have this issue.

In pictures:

As reference: DummyOut.xlsx - generated by xlnt v1.4.0 DummyOut.xlsx - generated by LibreOffice Calc v6.4.3 DummyOut.xlsx DummyOut2.xlsx

tfussell commented 4 years ago

Thanks for the detailed report. I'll get to this when I'm able.