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
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.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.