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

Free Support Forum - aspose.com

Save Open Dialog

Hi Aspose support team,

I have to open the doc file using the aspose word version In the sample code i have the following option to save which got from internet.
doc.Save(Response, “Aspose.Words.Demos.doc”, ContentDisposition.Attachment, SaveOptions.CreateSaveOptions(SaveFormat.Doc));

But this option is not available in my dll v In this dll, save having 5 overload methods and all the methods are having two parameters only.
i have used the following code:
string html = txtMsgBdy.Html;
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
var resp = System.Web.HttpContext.Current.Response;
MemoryStream ms = new MemoryStream();
doc.Save(ms, Aspose.Words.SaveFormat.Docx);

after this i have to use the following to code to open the file.
doc.Save(Response, “Aspose.Words.Demos.doc”, ContentDisposition.Attachment, SaveOptions.CreateSaveOptions(SaveFormat.Doc));

How can i use above method in my code? Please help me.


Hi Saravanan,

Thanks for your inquiry. Please note that Aspose.Words DLL from net2.0 folder is used for 2.0, 3.0, 3.5 and 4.0 .Net Frameworks. This assembly cannot be used when targeting the .NET Framework 3.5 or 4.0 Client Profile as it depends on System.Web. In such an environment use the library under net3.5_ClientProfile instead.

In your case, please use net2.0 assembly of Aspose.Words. Hopefully it will serve your purpose. Please read more about Document.Save methods from here:

Please read following documentation link for your kind reference.

Hope this answers your query. Please let us know if you have any more queries.