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

Free Support Forum - aspose.com

Aspose Cell Saving file to Response Object not generating a valid .xlsx file

Hi ,

I tried the feature for Saving a newly generated Excel fly using the save to Response Object, however it doesnt work for correctly files saved as xlxs file format.

The file generated is a corrupted file and cant be opend up by excel.

This is the Code line that i used:

workbk.Save("Report_New.xlsx", FileFormatType.Excel2007Xlsx, SaveType.OpenInExcel, Response)

Let me know if this is some kind of bug.



We will look into the issue and get back to you soon.

Thank you.


Please call Response.End(); after calling Workbook.Save("Report_New.xlsx", FileFormatType.Excel2007Xlsx, SaveType.OpenInExcel, Response); Also, kindly make sure that these lines should be the last lines for your procedures/methods.

Thank you.

Thanks guys it works great now !


I have created a chart which is not getting saved in .xlsx.

Please find the attached chart. open it and try to save it. It shows an exception.



Hi Bhushan,

Thanks for providing us the template xlsx file.

We will look into your issue and get back to you soon.

And, your issue has been logged into our internal issue tracking system with an issue id: CELLSNET-11398.

Thank you.


Please try the attached version. We have fixed the chart’s saving issues you mentioned.
Please let us know if you still find the problem.

Thank you

The issues you have found earlier (filed as 11398) have been fixed in this update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.