Solved

hyperlink to Excel or Word

Posted on 2006-06-29
13
307 Views
Last Modified: 2008-02-26
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
Comment
Question by:tdeinzer2005
  • 6
  • 6
13 Comments
 
LVL 25

Expert Comment

by:SStory
ID: 17012571
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
 

Author Comment

by:tdeinzer2005
ID: 17012658
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
 
LVL 2

Accepted Solution

by:
T3Logic earned 500 total points
ID: 17012671
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
 

Author Comment

by:tdeinzer2005
ID: 17012708
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
 
LVL 2

Expert Comment

by:T3Logic
ID: 17012721
yes, sorry I forgot to make it a link ;-)
0
 

Author Comment

by:tdeinzer2005
ID: 17012776
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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 2

Expert Comment

by:T3Logic
ID: 17012790
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
 
LVL 2

Expert Comment

by:T3Logic
ID: 17012804
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
 
LVL 2

Expert Comment

by:T3Logic
ID: 17012807
sorry target="_blank"
0
 

Author Comment

by:tdeinzer2005
ID: 17012864
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
 
LVL 2

Expert Comment

by:T3Logic
ID: 17013042
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
 

Author Comment

by:tdeinzer2005
ID: 17013055
Yeah the problem with that is this will be on that cd, and you never know what the drive letter will be.
0
 

Author Comment

by:tdeinzer2005
ID: 17013076
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now