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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why a link to MS Word doc or excell in my webpage opens up garbage?

Status
Not open for further replies.

seenoorao

Programmer
Sep 6, 2005
8
US
hi,

I have links to open word docs, MS excel workbook in one of the web page. When i click on the link, it opens up garbage instead of invoking the MS Word/Excel application and then opening my document within it. Any idea what is wrong and how I can fix this? If I right click on the link and after i do save as doc, and then open the doc, I can see doc is in perfect shape!

This may not be any setting issue in my browser because some other web page which has similar link opens up MS office applications correctly and brings up the document.

Any quick tips on this will be of lot of help.

~Shrini
 
Do you have relevant code that demonstrates what you are doing? This may help others to help you.

------------------------------------------------------------------------------------------------------------------------
"Men occasionally stumble over the truth, but most of them pick themselves up and hurry off as if nothing ever happened."
- Winston Churchill
 
I jsut have simple html code as shown below which is not working as expected.

<TD VALIGN="top">
<SPAN ID="Text">
<A HREF="Docs\MyChecklist.doc">Proj Checklist</A><BR>
</SPAN><BR>
</TD>
 
Do you have the following at the top of your page:
Code:
Response.ContentType = "application/vnd.ms-word"

------------------------------------------------------------------------------------------------------------------------
"Men occasionally stumble over the truth, but most of them pick themselves up and hurry off as if nothing ever happened."
- Winston Churchill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top