Skip to content
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

Creating a sheet without calling write_sheet afterwards causing excel detection of corrupted file #13

Open
gwy15 opened this issue Jul 5, 2020 · 0 comments

Comments

@gwy15
Copy link

gwy15 commented Jul 5, 2020

If a sheet is created without writing any data to it using the write_sheet method afterwards, excel warns that the file is corrupted and asks whether excel should try to fix it. Normally this can be auto-fixed.

A call to write_sheet without any data actually written will eliminate this excel warning.

example code

let mut wb = Workbook::create("/tmp/b.xlsx");
let mut _sheet = wb.create_sheet("SheetName");
wb.close().expect("close excel error!");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant