Skip to content

Excel file corrupted after just opening and saving it #4477

@B4rb4ross4

Description

@B4rb4ross4

I tried to open the following file and just save it without changes:
RE_Asset_Spreadsheet.xlsx

After tat the file is corrupted and cannot be opened with excel anymore. From what I can see, in theory I have seen no special stuff that i haven't used before when creating new files. Is there a way to find out what went wrong and how to fix it?

$reader = new XlsxReader();

$spreadsheet = $reader->load(__DIR__."/RE_Asset_Spreadsheet.xlsx");

$writer = new Xlsx($spreadsheet);
$writer->save(__DIR__."/RE_Asset_Spreadsheet_copy.xlsx");

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions