We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

ContentDisposition.Attachment Missing in Aspose.Words

Hello Team,

Previously I Used the following code to download the file.

Aspose.Words.Saving.SaveOptions saveoptionsformat = Aspose.Words.Saving.SaveOptions.CreateSaveOptions(SaveFormat.Doc);

doc.Save(Response, (savefilename + ".doc"), ContentDisposition.Attachment, saveoptionsformat);

Now the latest dll (Aspose.Words don’t have Content Disposition.

Please let me know how I can solve this problem.


Hello Patrick,

I have used your code in my application and it is accepting the enumeration ContentDisposition exactly the way it should accept.

Can you please elaborate it further so that i could get more details of this problem.
Also please send the complete code and information of your working environment.

Hi Patrick,
Thank you for your inquiry. 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:
Best regards,