By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,872 Members | 2,392 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,872 IT Pros & Developers. It's quick & easy.

contenttype rtf question

P: n/a
I am able to display my document with contenttype="applicaton/msword"
this requires that the content be marked up in html style..

i wanted to also try displaying it as RTF, so i could use \rtf1 \par
style formatting in it.

however when i do
contenttype applicaton/rtf
and attempt to insert rtf markup, the browser/ word does not recognize
it as valid RT and makes me choose different format.

Nov 19 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
here is my code:

Response.ContentType = "application/rtf";

content.Append( @"\rtf1" );
content.Append( @"\ansi
\deff4\deflang1033{\fonttbl{\f4\froman\fcharset0\f prq2 Baskerville
MT;}}{\colortbl;\red0\green0\blue0;\red0\green0\bl ue255;\red0\green255\blue255;\red0\green255\blue0; \red255\green0\blue255;\red255\green0\blue0;
" );

Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.