Stop Excel from opening in a browser window (IE)
Posted on 2006-06-07
Here's the deal. I have say, 500 given Excel documents stored in the file system of an IIS web server. I have a page that reads in those file names from the directory and displays an HTML link to them.
Question: How do I make that file open in Excel, and not in the browser when they click the link (I've seen this done before so I know it's possible)? Is there an IIS setting I can choose that would change the MIME type for certain files as they're sent? I can't change the content-type because I'm not actually creating the content, it's already a file. I could read it in with the FileScriptingObject but that's not a preferred method. Thoughts?