contenttype rtf question

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.
 
S

sonic

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;
" );
....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,763
Messages
2,569,563
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top