Free Support Forum - aspose.com

Sending to a Client Browser

When sending to a client browser with the newest .dll of aspose words, I can no longer send my file to a client browser under the specified rules in your instructions. It now tells me that "no overload for method 'Save' takes 4 arguments"

doc.Save(Response, "Practice_Test.doc", ContentDisposition.Inline, null)


This message was posted using Page2Forum from Save a Document - Aspose.Words for .NET

Hi

Thanks for your request. It seems you are using .NET 3.5 Client Profile, and as you may know HttpResponse is not available in it. This is entirely by design.

In your case, you should use Aspose.Words for .NET 2.0 in your ASP net application.

Best regards,

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,