-
-
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
Corrupted xlsx after write operation #152
Comments
Have you tried using SetCellValue? |
Yes Result it the same. Output file - Workbook.xlsx Output file is smaller by 680Kb and corrupted. |
Signed-off-by: Ri Xu <xuri.me@gmail.com>
@valasek Thanks for your issue. I have fixed it by add missing XML attribute and namespaces. |
@xuri thank you. I have updated the package and tested. Works better than before. |
Please attach broken and input file if you can. |
Which contact can I use to share it directly? I have used your gmail. |
…iew` in the workbook, relate issue #152. Signed-off-by: Ri Xu <xuri.me@gmail.com>
@xuri thank you. I have updated the package and tested. Now I can open a sheet where one cell was updated using excelize without a warning. |
Based on my testing updated excel files are readable and give any further warnings. Closing the issue. Thank you for fixing. |
Hi dev team, @xuri, Input file: Template.xlsx Here is my code |
@xuri : I am a beginner in Golang, so I don't know how to upgrade the library. Is this latest version? module export_excel_file2 go 1.12 require ( I used this command to upgrade library, but this issue is still existed. |
Uploading Vehicle Activity Reports-119 -2023-2024.xlsx… hello PLease help me the same issues. file attached for referance. |
Hi @jograjrathore, thanks for your feedback. Which version of the Go language and Excelize library are you using? Could you show us a complete, standalone example program or reproducible demo? The file attachment can not download. |
@xuri I'm facing same problem. I tried example from readme. File is generated but when I try to open, it throws above error. |
Hi @hibare, thanks for your feedback. Which version of the Go language and Excelize library are you using? Could you show us a complete, standalone example program or reproducible demo? |
Thank you for your great work on excelize. Reading works like a charm.
But I have an issue with writing.
I update one cell, save and XLSX file is corrupted.
Input file: source_file.xlsx
Output corrupted file: Workbook.xlsx
How I am writing to the file
Erro message during opening Workbook.xlsx
And error if I try to recover the workbook:
Replaced Part: /xl/worksheets/sheet1.xml part with XML error. Load error. Line 2, column 213397.
Removed Records: Formula from /xl/calcChain.xml part (Calculation properties)
go env
The text was updated successfully, but these errors were encountered: