-
-
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 #426
Comments
Hi @RajatBanerjee, thanks for your feedback, could you upload the .xlsx attachment? |
I can't upload the actual attachment since it has some confidential data, but it happens for any excel file, so let me recreate the scenario with a regular file and upload that. |
@RajatBanerjee Hi RajatBanerjee, is the problem still there? We have issues while doing a small change in our excel (xlms) sheet using intensly activex controls and macros. The exel activeX control informations are lost afterwards. |
Hi @dennisfleischmann, please provide code and file attachment to reproduce this issue if you can. |
I had the exact same problem too. Opened excel with formatterd\colored\cell borders, and also formulas that referenced across sheets |
@muhrifqii could you provide code and file attachment to reproduce this issue? |
@xuri the code just open the file then save it, exactly like @RajatBanerjee code . It contains some credential data, could you please send your contact to me and I'll send it to you privately. |
You can send me the file with credential data masking. |
Hi @muhrifqii, thanks for your feedback. I have fixed it. Please try to upgrade the library with the master branch code. I'm not sure if this fix will work for the issue you mentioned by @RajatBanerjee. |
Thanks @xuri I tested on master branch and it fixed the issue |
Description
If you try to open and save an excel file, which has formatterd\colored\cell borders, it corrupts the file
xlsx, err := excelize.OpenFile("./Book1.xlsx")
if err != nil {
fmt.Println(err)
return
}
err = xlsx.Save()
if err != nil {
fmt.Println("unable to save Internal timesheet, error: ", err)
os.Exit(1)
}
Steps to reproduce the issue:
1.
2.
3.
Describe the results you received:
Describe the results you expected:
Output of
go version
:Excelize version or commit ID:
Environment details (OS, Microsoft Excel™ version, physical, etc.):
Mac OS
Excel for mac 16.13
The text was updated successfully, but these errors were encountered: