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

Displaying rtf contents in a browser

Status
Not open for further replies.

dummieq

Programmer
Jun 26, 2003
22
US
Hi,
I am facing a problem in displaying content on the web browser. What I want to be able to do is to display an rtf document in the web browser. I set the Mime types in the IIS to application/rtf. But, when I try to view this in the browser, it comes with all the formatting details and a lot of messy code. What should I do to just view the content.

Thanks
 
try Response.ContentType = "text/rtf" or
Response.ContentType = "text/richtext"
 
I tried both of them..but the problem still persists..

Thanks
 
I create a test.rtf document on my server and an html page to link to it. Here's the html:
<html><head></head><body>
<a href=&quot;test.rtf&quot;>Click Here</a>
</body></html>

The mime map on my server is empty yet the document still comes up fine. Maybe you should clear the mime map and start over.
 
Just a Quick question Veep..Does the rtf document open up with a different application or is it displayed within the browser.
Thanks for ur help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top