NPOI
NPOI copied to clipboard
workbook.Write() should not close stream
Workbook does not own the stream, it should not be closing it.
This is fixed in NPOI official release. Please use https://www.nuget.org/packages/NPOI/ instead.
Not ideal, but if you face this issue, copy content of stream to byte array and create a new memory stream from it.