I have Aspose evaluation copy. In my code I have had success opening a file using the following code placed in the Page_Load event:
string MyDir = "C:\\myDir\\TermSheet\\Doc\\"; Document doc = new Document(MyDir + "66C7F9F82E664A0FAF4BE52A07842922.doc"); doc.Save("Report Out.doc", SaveFormat.Doc, SaveType.OpenInBrowser, Response);
However if I palce the same code in the click event of a button the document does not display & I get an error icon displayed with the message Sys.Webforms.PageRequestManagerParseErrorException.
Can anyone suggest a way to fix this?