Spire.XLS for .NET is a professional Excel .NET library that can be used to any type of .NET( C#, VB.NET, ASP.NET, .NET Core) application and Java (J2SE and J2EE) application.

Wed Feb 01, 2017 4:18 pm

Hi,
I have a workbook and a worksheet inside the workbook. After I inserted data into the worksheet. I was trying to save the workbook into a memory stream. Here is my code:

_ms = new MemoryStream();
_myWorkBook.SaveToStream(_ms);

After this code was executed, I went to the corresponding directory and opened the newly created file. But the file contents is always empty.

Do you know what is wrong?

lsong
 
Posts: 36
Joined: Wed Feb 01, 2017 4:13 pm

Thu Feb 02, 2017 4:38 am

Hello,

Thanks for your inquiry. Could you please provide us the document you were trying?

Thanks,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Sat Feb 04, 2017 6:49 am

Hello,

Could you please attach the file you were trying? And you could send it to us(support@e-iceblue.com) via Email .

Thanks,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Sat Oct 07, 2017 10:41 am

Is this issue already solved? I have the same issue when saving to Azure Blob.
I can save an PDF, but storing an xls results in an empty file in Azure Blob.

br
Alexander

schalex
 
Posts: 1
Joined: Sat Oct 07, 2017 10:38 am

Mon Oct 09, 2017 5:51 am

Dear Alexander,

Sorry for late reply as weekend.
Please check if the result xls data is not empty before storing in Azure Blob. If it is empty, please share us the input document and the code you were using for further investigation.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3067
Joined: Tue Sep 06, 2016 8:30 am

Fri Dec 22, 2017 3:28 pm

It worked. Thank you so much!

lsong
 
Posts: 36
Joined: Wed Feb 01, 2017 4:13 pm

Return to Spire.XLS