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

Free Support Forum - aspose.com

Document.Save() overload method removed?


We are using the following method to save the generated document directly to a HttpResponse.


public SaveOutputParameters Save(
HttpResponse response,
string fileName,
ContentDisposition contentDisposition,
SaveOptions saveOptions);

However, when I get the latest aspose.word.dll published on Oct. 30, this method has been removed. The Visual studio shows that only the following save() methods are generated from the meta data.

public SaveOutputParameters Save(string fileName);
public SaveOutputParameters Save(Stream stream, SaveFormat saveFormat);
public SaveOutputParameters Save(Stream stream, SaveOptions saveOptions);
public SaveOutputParameters Save(string fileName, SaveFormat saveFormat);
public SaveOutputParameters Save(string fileName, SaveOptions saveOptions);

I would like to know the rational behind the removal and how to best workaround it.


Hi Sherry,

Thanks for your inquiry.

The method you are using for saving the generated document to response is correct. 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 to use Aspose.Words.dll for .NET 2.0.

I hope, this will help.

Best Regards,

Thank you for the explanation. I guess I should have read the readme file first instead of picking it by directory name.