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 13.5.0.0. 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 13.5.0.0. 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);
builder.InsertHtml(html);
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.

Thanks.
Saravanan

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:
http://www.aspose.com/docs/display/wordsnet/Save+Method

Please read following documentation link for your kind reference.
http://www.aspose.com/docs/display/wordsnet/Sending+to+a+Client+Browser

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