Page 1 of 1

problem with xls files located on the server to download

Posted: Thu Oct 13, 2005 1:16 pm
by orangeapple
Hi friends,

I have some excel files on the server that i would like to be opened by the website users.

So i have echo out an anchor tag with a link to my files, but when the user clicks on the link, the file opens as an excel sheet in Internet Explorer...

How can i make it open in Excel ?

thanks for your help !!!

Posted: Thu Oct 13, 2005 2:34 pm
by chrys
Tell your users not to use internet explorer :P Call bill...

No, there might be a way. Something to do with sending them to a page with content-type headers. Someone here should know.

Posted: Thu Oct 13, 2005 7:58 pm
by feyd
It has nothing to do with headers... The user has the IE Excel viewer extension, you cannot bypass that to jump into a different applicaiton.

Posted: Fri Oct 14, 2005 6:54 am
by orangeapple
It is very strange in fact, on some PC when i click on the link, the download prompt appears : i have the possibilty to either save the file or open it (in IE) and on some pc the xls file opens directly in IE without prompting for save or open.

Same kind of strange thing with a backup .txt file i have created (with content-type header) : on some pc it opens in the notepad and on others it opens in IE.

Is it a matter of Windows setting ???

Posted: Fri Oct 14, 2005 7:55 am
by feyd
Windows setting.. yep.