contenttype rtf question

  • Thread starter Thread starter sonic
  • Start date Start date
S

sonic

Hi,
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.
 
here is my code:

Response.AddHeader("Content-Disposition",
"inline;filename=InvoiceContent.doc");
Response.ContentType = "application/rtf";

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