Free Support Forum - aspose.com

Adding a word document to the response object as an attachment?

I’d like to return the word document to the user from the browser and then redirect them back to another ASPX page. Is this possible with the inbuilt save to response methods in Aspose.words .net?

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. No, you can’t do this using inbuilt Save method.

Document.Save(String, SaveFormat, SaveType, HttpResponse) method just sends the document to the client browser.

Please see the following link for more information.

http://www.aspose.com/documentation/file-format-components/aspose.words-for-.net-and-java/aspose.words.document.save_overload_5.html

Best regards.