469,645 Members | 1,984 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,645 developers. It's quick & easy.

Prevent Excel from opening in browser

I've got an intranet application that presents a list of files in sort of a
'central repository' web page. Each file is an href in the form <a
href=file://server/share/path/filename.ext>.

When the user clicks on an excel file, it is opening within the browser,
which unforntuntely confuses the heck out of them because the usual
Print/Print Preview menu options are not available. I would like the user
to be presented with the typical Open/Save dialog when clicking on this
link.

Over the past 16 hours or so, I've seen references to adding headers to the
repsonse, setting the content type to attachment to prevent the browser from
opening it. However, this only works if I'm generating the content or if
the file resides on the web server. The files in this case reside on
servers throughout the company.

Is there any way that I can force the browser to do the same thing as 'Save
Target As', without modifying the user mime configuration in IE (another
common suggestion), or hosting the files on the web server?

tia,

Bob M..
Jul 19 '05 #1
1 6714
In your scenario, you will need to make a change on the client machines.
The change is:

Windows Explorer:
Tools(View if NT) - Folder Options - File Types - XLS file extension (Excel
workbook if NT)
Browse in same window = FALSE
Confirm open after download = TRUE

Ray at home

"Bob Murdoch" <ra***********@erols.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I've got an intranet application that presents a list of files in sort of a 'central repository' web page. Each file is an href in the form <a
href=file://server/share/path/filename.ext>.

When the user clicks on an excel file, it is opening within the browser,
which unforntuntely confuses the heck out of them because the usual
Print/Print Preview menu options are not available. I would like the user
to be presented with the typical Open/Save dialog when clicking on this
link.

Over the past 16 hours or so, I've seen references to adding headers to the repsonse, setting the content type to attachment to prevent the browser from opening it. However, this only works if I'm generating the content or if
the file resides on the web server. The files in this case reside on
servers throughout the company.

Is there any way that I can force the browser to do the same thing as 'Save Target As', without modifying the user mime configuration in IE (another
common suggestion), or hosting the files on the web server?

tia,

Bob M..

Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Vishal | last post: by
6 posts views Thread by Daniel | last post: by
2 posts views Thread by monalisa | last post: by
3 posts views Thread by Fauna | last post: by
4 posts views Thread by JaxDawg | last post: by
4 posts views Thread by =?Utf-8?B?THluZXJz?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.