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 10.6.0.0) don’t have Content Disposition.
Please let me know how I can solve this problem.
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: