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

Issue/Corrupt workbook using stream writer with background image #1090

Conversation

brunoargolo
Copy link
Contributor

When using stream writer with background images, all works fine if you dont commit the worksheets before commiting the workbook.

but when explicitly commiting the worksheet first the file becomes corrupted.
This is becasue the "name" property of the media is only created on workbook commit but its needed on the worksheet commit.

Added integration test to reproduce it and fix by defining the "name"property early on addImage.

@alubbe alubbe merged commit 4d9cddb into exceljs:master Feb 6, 2020
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

Successfully merging this pull request may close these issues.

3 participants