Generate xlsx file under Ubuntu 20.04 and Go 1.21.0 but error occured and got nothing inside it when try to open it under windows #1660
Labels
duplicate
This issue or pull request already exists
Hi,
I'm not good at English so I just try to explain this or it may be quite helpful if you can understand Chinese :)
I met a problem when I recently tried to generate a xlsx file. I generated it under
Ubuntu 20.04
withGo 1.21.0
, then I got this file through http request and save it on my Windows desktop. When I tried to open it, excel notified that an error occured, I followed the notification, tried to repair file by excel itself but got a blank file, with nothing inside it. The notification is below:So I tried to downgrade my go version from
1.21.0
to1.20.3
, then generated again, it works.Linux SGW2023 5.15.0-83-generic #92~20.04.1-Ubuntu SMP Mon Aug 21 14:00:49 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Windowss Professional Workstation 22H2 19045.3208
Microsoft Office 365 Excel version 2307 (inside version16626.220134)
VMware® Workstation 16 Pro 16.2.5 build-20904516
Related file is here, including go.mod go.sum two xlsx files generated reletively, and sample code, I hope it's helpful:
issue.zip
I used excelize both version 2.7.1 and 2.8.0, met the same question. I also paste code here:
Thank you :)
Best regards,
The text was updated successfully, but these errors were encountered: