Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[BUG] File won't be saved properly (read&write) #1286

@theMasix

Description

@theMasix

I wrote an script and here's an snippet from my code:

let workbook = new Excel.Workbook();
await workbook.xlsx.readFile('./input.xlsx');
await workbook.xlsx.writeFile('./output.xlsx');
console.log('file saved!');

I know how async/await works and there is no error!
the input.xlsx is a valid excel file. but the output.xlsx can't be opened by libreOffice or Microsoft Excel.
I should notice that if I comment await workbook.xlsx.readFile('./input.xlsx');, in this situation also the output.xlsx can't be read too!

It's an strange issue for me! I used exceljs many many times but I don't know why it's happening now!

exceljs version: 3.9.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions