Skip to content
This repository was archived by the owner on Nov 24, 2020. It is now read-only.
This repository was archived by the owner on Nov 24, 2020. It is now read-only.

Cannot update file - error in a saved excel file #184

@ghost

Description

Create empty the Microsoft xlsx file "tmp.xlsx". Use the code below:

XSSFWorkbook xssWorkbook = null;

using (var stream = new FileStream(@"C:\temp\tmp.xlsx", FileMode.Open, FileAccess.Read))
{
    xssWorkbook = new XSSFWorkbook(stream);
}

using (var stream = new FileStream(@"C:\temp\tmp2.xlsx", FileMode.Create, FileAccess.Write))
{
    xssWorkbook.Write(stream);
}

Open the "tmp2.xlsx" file - you will see the below error:

-

Removed records: /xl/workbook.xml

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions