We have an ASP Classic application that provides document management.
We have a fetch page that fetches the document from SAN storage and delivers it to the user, based on whether or not they are logged in.
With IE6 and Word 2000 (when I wrote the code :)) The word documents displayed in the browser.
Now, with IE8 and Word 2010 installed, we are always prompted to open/save the document.
We:
- Set the mimetype (Response.ContentType = GetMIMEType(basename))
- Set the charset (REsponse.Charset = "")
- Set the content disposition: Response.AddHeader "Content-Disposition", "inline; filename=""" & basename & """"
- Binary write the file contents.
Has anyone come across an additional HTTP header or other mechanism for encouraging IE to display in word inline?
We do not think this is related to the BrowserFlags registry setting as that controls opening the document in a new window (http://support.microsoft.com/kb/982995) whereas what is happening is we are being prompted for Open/Save/Cancel.