By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,984 Members | 1,421 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,984 IT Pros & Developers. It's quick & easy.

How to force open excel for downloaded file?

P: n/a
ABC
Hi,

I found many methods to download attachment files, but I cannot found any to
force the browser open excel file if the download is excel type. Is there
any reference or tutorial on internet?

Jun 4 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi,

ABC wrote:
Hi,

I found many methods to download attachment files, but I cannot found any to
force the browser open excel file if the download is excel type. Is there
any reference or tutorial on internet?
This is a user setting, and you cannot change it (thankfully). If you
could force Excel to launch a file automatically, imagine what you could
do with macros...

The only thing you can do is suggest the file type to the browser (using
the correct MIME type in the HTTP header), and let the browser decide
what should be done with this file, depending on the user settings.

HTH,
Laurent
--
Laurent Bugnion [MVP ASP.NET]
Software engineering, Blog: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Jun 4 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.