Respose.end error


Hello ,everyone
I want to save as .xls file
code :
wb.Save(Me.Response, "CABatchPay2Of1.xls", Aspose.Cells.ContentDisposition.Attachment, New Aspose.Cells.XlsSaveOptions(Aspose.Cells.SaveFormat.Excel97To2003))
Response.End()
stream.Close()

When run Respose.End() get Error
How can i do?
Thank you

Hi,


Well, I think you may remove the line i.e., Response.End() for XLS file format, if you get any issue. You may place the line Response.End() when you save XLSX file format.

Thank you.

Hi Wu,


We hope you are up & running again. Please feel free to contact us back in case you need our further assistance with Aspose APIs.