If i open an excel spreadsheet using the code below:
XlsSaveOptions so = new XlsSaveOptions(SaveFormat.Excel97To2003);
book.Save(Response, sDocName + “.xls”, ContentDisposition.Attachment, so);
And then cancel out of the dialog that opens I get the following error:
"The remote host closed the connection. The error code is 0x800703E3."
Is this an Aspose bug? Is there a work around for it?
Hi Abe,
Thank you for considering Aspose.
The issue you have mentioned here can be caused by uploading or flushing out large data content. It cause the request timeout or exceed the max allowed request lenght.
We are looking in to this issue. Can you please forward us your sample application? This will help us finding the issue.
Thanks,
Hi, We just acquired Aspose Total and I have come across an issue similar to this one. I am getting the following error when I cancel an Open Document dialog:
The remote host closed the connection. The error code is 0x800703E3.
It occurs at the Response.Flush(); I understand from my research that the Response cannot send (Flush) the document since the connection is closed. I have tried wrapping the Response.Flush() in a Response.IsClientConnected() but that didn't work. Have you been able to find anything out about this or how to trap it?
Thanks,
Mike
Hi Mike,
May be this could be helpful for you.
If you are sending XLS file, then use XlsSaveOptions
If you are sending XLSX file, then use OoxmlSaveOptions
If you are sending PDF file, then use PdfSaveOptions
Please see the last section in this document: Saving Files