Skip to content

Save() corrupts the already existing excel file #1693

@nagxsan

Description

@nagxsan

Description
I have a Go program that reads an Excel file and needs to make some changes in the same. However when I am trying to save the file using the Save() function, then it corrupts the file. I have error-handled it and it doesn't seem to throw up any error. However, when I reopen the file after the program stops, it shows up an error (screenshot below). Also my file is closed throughout the execution of the program. Can anyone please help me with this issue?

Steps to reproduce the issue:

  1. Have an Excel file and a Golang program that makes some changes in the file using excelize
  2. After those changes, execute Save() method in the code.
  3. Open the Excel file and it shows the error

Describe the results you received:
image

Describe the results you expected:

Output of go version:

(paste your output here)

Excelize version or commit ID:

(paste here)

Environment details (OS, Microsoft Excel™ version, physical, etc.):

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions