Hey,
I am doing a quick evaluation of the Words software. Trying to output a dummy document to Response stream for opening in client Browser. In the Help files I read this:
Shows how to send a document to the client browser from an ASP.NET code.
[C#]
Document doc = new Document(MyDir + "Document.doc");
doc.Save(Response, "Report Out.doc", ContentDisposition.Inline, null);
Compiler however complains that there are no overload of Save that takes 4 arguments. The “doc” is of type Aspose.Words.Document and the version of Aspose.words is 10.4.0.0.
Out of the 5 overloads I can access, the only one that supports a stream as argument is the following. It gives a NotSupportedException at runtime:
doc.Save(Response.OutputStream, Aspose.Words.Saving.SaveOptions.CreateSaveOptions(SaveFormat.Doc));
Please help!
/Daniel