[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 343
  • Last Modified:

hyperlink to Excel or Word

I have created some links on a web page that open Excel, Word, and PowerPoint files.  Right now when you click on the link from Internet Explorer, the browser opens the file in IE.  I want it to open in the appropriate application.  

Any one know how to do this?  I need this solution in the next hour.

Thanks.
0
tdeinzer2005
Asked:
tdeinzer2005
  • 6
  • 6
1 Solution
 
SStoryCommented:
hmm.
I think you should probably explore MIME types on the IIS server and set one up for Word/ Excel/ Powerpoint.
Since there is a bad Word virus going around, I'm not sure this is a good idea anyway.  No chance of converting to PDF?
0
 
tdeinzer2005Author Commented:
this is going to be a web page on a cd.  There won't even be a need for the people to connect to the Internet.  
0
 
T3LogicCommented:
If the files are on the cd that we spoke about before, use a link....

file://test.xsl

If it's remote its going to be alot harder because you need the user to download the file before opening it.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
tdeinzer2005Author Commented:
I'm a little unclear on what you mean.  Do you mean something like this:

<a href="file://test.xls">Excel File</a>

Thanks.
0
 
T3LogicCommented:
yes, sorry I forgot to make it a link ;-)
0
 
tdeinzer2005Author Commented:
help me out.  I tried and it didn't work.  The file name is "Electronic SAS -TASM v1 0.doc" so I tried <a href="file:\\Electronic SAS -TASM v1 0.doc">.  That didn't work.  Am I doing it right?
0
 
T3LogicCommented:
Another way for trickery if you know they have excel installed you can

<A HREF="C:\Program Files\Microsoft Office\Office\Excel.exe test.xls">Excel File</A>
0
 
T3LogicCommented:
same for word.


The problem is the browser developed to open the files in the browser window.  You could have them open in a new windows with targer="_blank".  
0
 
T3LogicCommented:
sorry target="_blank"
0
 
tdeinzer2005Author Commented:
This is what I have now:
<a href="file:\\Electronic SAS -TASM v1 0.doc" target="_blank">

Does it have to be on the cd to work.  I'm working off a network drive now.

0
 
T3LogicCommented:
mainly the file:// link should be the path of the file.

so if i wanted to open the file test.txt on my c:\drive the link would be

<a href="file://c:/test.txt" target="_Blank">Test File</a>

0
 
tdeinzer2005Author Commented:
Yeah the problem with that is this will be on that cd, and you never know what the drive letter will be.
0
 
tdeinzer2005Author Commented:
I've found the solution.  I made a shortcut of the file, put it in the same directory.  Then my link is like this <a href="opportunityplanner.xls.lnk">  It works!

Thanks so much for trying.  I'm going to give you some points for effort.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 6
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now