MemoryStream seems be closed after NPOI workbook.write?
Update 1/3/2020: As Florian Dendorfer pointed out, there is an override added in October 2018 to prevent the stream from closing. Please try the overload first before using this workaround (and upvote Florian’s answer!) Leaving original answer for historical purposes. Another workaround to this issue…which doesn’t use multiple MemoryStream objects. Create a NpoiMemoryStream class that … Read more