Getting error: Could not complete the operation due to error c00ce514

Hi,

We are using updatePanel in our .aspx page. When using below method in code behind, getting the error Could not complete the operation due to error c00ce514

wbReport.Save(response, "Report.xls", ContentDisposition.Attachment, New XlsSaveOptions())

Please help me as soon as possible.

Thanks,

Yogita


This message was posted using Aspose.Live 2 Forum

Hi,

Do you use MS Ajax Extension’s UpdatePanel, I have tested to put your mentioned code adding a button to the panel in VS.NET 2010, it gives no error and the project/page compiled fine.

By the way, you should not put this code or Response.Write() type of code to Update Panel as using update panel will produce a partial-update of your page on a postback. Only the
content in the UpdatePanel is refreshed, the other parts of the page
remain unchanged. But as Workbook.Save() method with response the final Excel file to the client, so it would not give you better results or no use I think. You should always put these type of codes outside of the update panel and this should be your last line of code in program segment, there should be no processing after this.

Thank you.