excel - NPOI Multiple Sheets Error -


I am trying to create a pure XLSX file in a pure webcontact.

I tried this code but as soon as I add more than 1 sheet, my Excel gets corrupted.

I am using NPOI 2.1.3

  XSSFWorkbook wb = new XSSFWorkbook (); Wb.CreateSheet ("Sheet1"); Wb.CreateSheet ("Sheet2"); MemoryStream MemoryStream = New MemoryStream (); wb.Write (MemoryStream); MemoryStream.close (); var buffer = MemoryStream.NETBuffer (); Reaction.contact = "App / Video.AppendixFlamats - Offcedocument.spreadsheetml.sheet "; response.BinaryWrite (templateOutput);  

when I Uses a filestream functionality. (Multiple sheets)


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -