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

Free Support Forum - aspose.com

Changes in sending a word document to a web browser

I previously was using version 4+ of the Aspose.Words dll and the following method to send a doc to a browser:

public void StreamDocument(HttpResponse resp, Document doc, string fileName){

resp.ContentType = "application/vnd.ms-word";

resp.Charset = "";

doc.Save(fileName, SaveFormat.FormatDocument, SaveType.OpenInBrowser, resp) ;


I am now switching to 9.1 and am using the same code with a change to the SaveFormat:

doc.Save(fileName, SaveFormat.Doc, SaveType.OpenInBrowser, resp) ;

When I compile it, I get a "No overload for method 'Save' takes 4 arguments:

I am getting the dll from the 'net3.5_ClientProfile' directory with the 4.0 .Net framework

Can someone tell me how to send the Word doc to a web browser?

Hi Brad,

I believe the information in these threads can answer your question:


<A href="https://forum.aspose.com/t/67806</FONT></A></P> <P><FONT face=Arial>Thanks,</FONT></P>