Free Support Forum - aspose.com

Send document to browser as attachment in latest version of aspose.words

Hi,

How to send document to browser as an attachment in latest version of aspose.words? document.save method has only two parameters for specifying file name and save format. Can u please give an example on this?

Thanks
Sowjanya

Hi

Thanks for your request. You should use the following overload of the Save method:

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

Please note, to use this overload, you have to use Apsose.Words.dll for .NET 2.0. If you are using Aspose.Words.dll for .NET 3.5, you will not see this overload.

Best regards,

Hi,

Thanks for the response. Can u please tell the work around for .NET 3.5 to use the 6th overload method for saving document?

Thanks
Sowjanya

Hi

Thanks for your request. ASP.NET applications work under .NET 1.1 or .NET 2.0. To make sure, please check IIS settings. As you can see you can select only .NET 1.1 or .NET 2.0 . .NET 3.5 Client Profile HttpResponse is not available. This is entirely by design.

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

Best regards,