You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
When using StreamWriter on an existing sheet created by an excel software the saved workbook is corrupted.
Writing rows or not in the StreamWriter doesn't matter, only StreamWriter.Flush corrupt the workbook.
If the the Workbook was created by Excelize the Sheet will have all it's anterior content overwritten but the Workbook won't be corrupted.
Steps to reproduce the issue:
Create a workbook with an empty sheet on excel (tried google sheet as well), create "Sheet1" if not already there, save it.
Description
When using
StreamWriter
on an existing sheet created by an excel software the saved workbook is corrupted.Writing rows or not in the
StreamWriter
doesn't matter, onlyStreamWriter.Flush
corrupt the workbook.If the the Workbook was created by Excelize the Sheet will have all it's anterior content overwritten but the Workbook won't be corrupted.
Steps to reproduce the issue:
Describe the results you received:
The opened workbook in empty and corrupted
Describe the results you expected:
A functional Workbook that kept his content. Or an error.
Output of
go version
:Excelize version or commit ID:
The text was updated successfully, but these errors were encountered: