Skip to content
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

Able to open the .xlsx file in vscode excel viewer but not able to open it in local Microsoft Excel #1670

Closed
philipleong97 opened this issue Sep 22, 2023 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@philipleong97
Copy link

philipleong97 commented Sep 22, 2023

Description

Steps to reproduce the issue:

  1. create a new go project
  2. Copy the code from https://github.com/qax-os/excelize#create-spreadsheet
  3. Run the go project
  4. Corrupted Excel file is produced
    Book1.xlsx

Describe the results you received:
it generate the Book1.xlsx as expected and i am able to use ExcelViewer extension from vscode to view it. However when I try to open it with local Microsoft Excel , the file seems corrupted and it is empty when i proceed to view it.

Describe the results you expected:
I am able to view the content in Microsoft Excel
Output of go version:

go version go1.21.0 darwin/arm64
image

Excelize version or commit ID:

v2.8.0

Environment details (OS, Microsoft Excel™ version, physical, etc.):
MacOs Ventura 13.4, Microsoft Excel™ version 16.76 (My license not activated due to this is newly bought computer. However , my friend with license is not able to view the file properly too. )

@xuri
Copy link
Member

xuri commented Sep 22, 2023

Thanks for your issue. If you are reporting a new issue, make sure that we do not have any duplicates already exist. If it does not work with Go 1.21.0, please reference the issues #1465, #1595, #1603, #1608, #1614, #1619, #1620, #1621, #1623, #1633, #1637, #1641, #1642, #1648, #1651, #1652, #1656, #1657, #1660 and #1663. There are some incompatible changes in the Go 1.21.0 encoding/xml library. I have given feedback to the Go team and created a patch for it (golang/go#61881), and it has been fixed on Go 1.21.1. Please using the Go 1.20.7 and previous Go released version or upgrade to Go 1.21.1 and later. I have added notice on the README and documentation website for this, and I've closed this. If you have any questions, please let me know, and reopen this anytime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants