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

!!!! Please Help - Response.ContentType = "application/vnd.ms-word"

Status
Not open for further replies.

smbure

Programmer
Mar 30, 2001
47
US
When I do this -

<%Response.ContentType = &quot;application/vnd.ms-word&quot;%>
<html><head></head><body>Hi Mom!</body></html>


The results in Word 97 display the html code instead of just &quot;Hi Mom!&quot;.

This works fine with Office 2000 & Office XP (2002)

Anyone???? gettin' jiggy wid' it --
smbure
 
MS Word 2000 and above have basic HTML editing abilities inherent so they show basically what a browser shows. Word 97 doesn't do anything special with HTML, it treats it like any other word document. One important thing to remember is just because you are using ASP doesn't mean you are restricted to HTML. If you just want to print &quot;Hi Mom!&quot; regardless of the version of Word try this:
Code:
<%Response.ContentType = &quot;application/vnd.ms-word&quot;%>
Hi Mom!
Simple and to the point. Wushutwist
 
Wushutwist-

I agree 100%. The problem is that I have images on the server that I need to embed in the word doc....any suggestion??? gettin' jiggy wid' it --
smbure
 
Help?
gettin' jiggy wid' it --
smbure
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top