-
-
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
Saving excel file makes it corrupt #1257
Comments
Thanks for your issue. I have fixed it, please upgrade to the master branch code, and this patch will be released in the next version. Note that the source spreadsheet |
thank you very much |
@xuri I'm facing same issue.. opening an xlsx file and write on it some cell value then save makes it corrupt I'm on master branch up to date.. what's happening? |
@AhmedX6 Thanks for your feedback. Could you provide your input file attachment without confidential info? |
@xuri here it is : input.xlsx |
Hi @AhmedX6, I have tested based on the Excelize v2.6.1 and master branch code with your attachment, and it works well on Office 2007 and Excel for Mac 16.65. Which Excel version are you using? Can you show us a complete, standalone example program or reproducible demo? |
I'm using : |
I have just test on Excel 2021 16.0.15629.20156 and it work well. Do you make sure using the master branch code? Can you show us a complete, standalone example program or reproducible demo? |
Description of task
Here is the task that I need to solve: open an excel document template that contains comments and formulas; insert the new values into the places where the comments are (function used to change the values: SetCellValue); save the excel document under a new path and new name
As result
After opening the saved file an error occurs that the file is corrupted
go version:
go version go1.18.1 windows/amd64
exelize version:
github.com/xuri/excelize/v2 v2.6.0
excel version
Microsoft® Excel® LTSC MSO (16.0.14332.20296) 64-bit
win version
Windows 11 Pro 21H2 build 22000.675
excel template file in attachment
Z.xlsx
The text was updated successfully, but these errors were encountered: