-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Excel Cannot Open Generated File #1620
Labels
duplicate
This issue or pull request already exists
Comments
teschste-reyrey
changed the title
Excel Cannot Open Generate File
Excel Cannot Open Generated File
Aug 21, 2023
This was referenced Aug 23, 2023
This was referenced Aug 30, 2023
Closed
Closed
This was referenced Sep 6, 2023
This was referenced Sep 14, 2023
Closed
Closed
This was referenced Dec 20, 2023
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Anytime I generate a new xlsx file, Excel is not able to open it. I am using Go Modules version github.com/xuri/excelize/v2.
I did some digging and the generated sheet1.xml file file has xmlns="" added to the dimension, sheetViews, sheetFormatPr, and sheetData tags. Through experimentation I was able to determine that if I remove the xmlns="" property from the sheetData tag (or all tags), the workbook will open normally.
Steps to reproduce the issue:
Describe the results you received:
Attempting to open a generated file with Excel produces the message: "We found a problem with some content in [filename]. Do you want us to try to recover as much as we can?"
Describe the results you expected:
The file to open correctly.
Output of
go version
:Excelize version or commit ID:
Environment details (OS, Microsoft Excel™ version, physical, etc.):
Windows 10, Excel 2016
sheet1.txt
The text was updated successfully, but these errors were encountered: