We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Problems saving from a MemoryStream

Hi, we use Apose.Cells primarily in a web application. However in an attempt to make it more testable we are implementing a console application that makes the same calls as the web interface and then saves the spreadsheet to the file system. When I try and save the memory stream to a work book I get an exception. Here is the code I am using:

MemoryStream memoryStream = null;
memoryStream = RenderReport();
Workbook wb = new Workbook();
wb.Open(memoryStream, FileFormatType.Excel2003);

the stacktrace seems to get truncated and I only get:
"at Aspose.Cells.Ss.xd8c3135513b9115b.x5d95f5f98c940295(Stream xcf18e5243f8d5fd3)
at Aspose.Cells.Workbook.Open(Stream stream)
at Aspose.Cells.Workbook.Open(Stream stream, FileFormatType type)

I have verified that making the same method call to RenderReport() through our web interface succeeds in creating an Excel file.



Thanks for the details.

Please try to save the memory streams directly to the disk without using Aspose.Cells and post it here. We will check it ASAP.

Thank you.