Force Open in Word

Hi. When generating word documents, in Firefox, the document opens in Word. In Internet Explorer, it opens in Word, but within the browser. Anyway I can force the file to open in Word?

Alternatively, can I force the Open/Save pop-up box instead of automatically opening in Word?

Hi,

Do you specify SaveType.OpenInWord when calling Document.Save to send the document to the client browser?

Not in front of the code right now, but I think I do OpenInWord

If I change it to Doc.Save, how do I get the user download prompt? And will I run into issues with the same file generated/downloaded if multiple users click the generate button at the same time?

Ooops, I had been using OpenInWord, changed it to the following, seems to work now…


doc.Save(filename & “.doc”, SaveFormat.Doc, Aspose.Words.SaveType.OpenInWord, Me.Response)

Glad to read that. From my part, I have found a Microsoft KB article that answers your original question about opening documents in Microsoft Word rather than in browser window, see my blog post:

There should be no issues with multiple users and Aspose.Words if you ain’t doing something out of the ordinary. In the scenario you described each user will be running and generating a separate instance of the Document object so there will be no problems with that.