Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opening file in excel

Status
Not open for further replies.

TheConeHead

Programmer
Joined
Aug 14, 2002
Messages
2,106
Location
US
Is there a way to make an excel file open in excel vs. a browser window (the IE default)??

[conehead]
 
If you are using ASP you can simply state

<% response.ContentType ="application/x-excel" %>

In the top of your page.

Make sure the user has Excel on their machine though.

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook
 
I am doing it from a link - I want that link to open the file in excel and not a browser - I have tried creating a shortcut and linking to that but for some reason that works on one server but not the other ?????

[conehead]
 
One the new page (the one being linked to) insert

<% response.ContentType ="application/x-excel" %>

and the browser will use an Excel plugin (if user has excel on their machine) to view the file.

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook
 
ok - I will keep that as an option - but ultimatley what I am wanting to do is not link to a new page but link to the file (.....file.xls) ....

[conehead]
 
hmm...

When I redirect to an Excel page (filename.xls) , IE automatically uses the plugin to open the page. Yes, it is a browser window, but you have some excel options available to you...

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook
 
exactly - I am wanting to go right to the app... It is the starngest thing - It works if I link to a shortcut of the .xls file on one server but on another that method does not work... that would be an easy option but for some reason it does not work on the server that I need it to work on (always the way...)

[conehead]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top