Free Support Forum - aspose.com

Latest Vesion of Aspose (10.0.5.0) is not supporting Document.Save Method (HttpResponse- String- ContentDisposition- SaveOptions)

I am trying to use the functionality(Sends the document to the client browser.)

Document.Save Method (HttpResponse, String, ContentDisposition, SaveOptions)

It fails with Error "No overload for method 'Save' takes '4' arguments".

I see this error only with the latest version of Aspose.Words (10.0.5.0.0) where as the older versions accepts this method with 4 arguments and successfully sends the document to the client browser.

Is this bug in the newer version or is there any update in this method and not included in the help?

Looking for a resolution ASAP, as we have to give a demo for the client.

Thanks in advance,

Hi

Thank you for additional information. Most likely you are using Aspose.Words .NET 3.5 Client Profile that is why this overload of Save method is not available .NET 3.5 Client Profile excludes System.Web and therefore HttpResponse is not available. This is entirely by design. If you need to use Aspose.Words in ASP.NET application, I would recommend you use .NET 2.0 Client Profile and the following overload of Save method:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net/aspose.words.document.save_overload_6.html

Best regards,

Thanks for the quick response. Yes with 2.0 it works!