[thelist] Re: IE and Excel files (Miller, Bart)

jp hackworth hackworth at lycos.com
Tue Aug 1 10:32:49 CDT 2000


##################################
# Anyone know how to force IE to open Excel files in Excel and not in # thebrowser?
# I tried using this ASP code:Response.ContentType = 
# "application/vnd.ms-excel"
# Response.Redirect "myfile.xls"...but it still opens in the browser.
###################################

Try changing the ContentType to something other than vnd.ms-excel

For example application/vnd.ms-excell.  The browser won't recognize that ContentType and should instead prompt you to open/save the file.

I've had this problem with .jpg files and the workaround was ugly.  The jpg's kept on opening in the browser when I really wanted to save them.  The only upgrade from Microsoft's site was an upgrade to 5.0 or 5.5 which wasn't an option for us.  We ended up having to shift the file extension so that a file that was named: test.jpg was returned to the browser as testjpg. and now our user has to move the file extension when they save the file.  Another option would be a signed java applet but I don't think you'd want to go that route either.  Unless what I recommended above doesn't work, or you can upgrade to IE v5+ there really isn't an elegant solution.

good luck!

hack  


Send your favorite photo with any online greeting!
http://www.whowhere.lycos.com/redirects/americangreetings.rdct




More information about the thelist mailing list