in reply to Re^3: How to print a text document to RTF document
in thread How to print a text document to RTF document

So I went to test out the orange and it printed red. Any idea why? I use the code above

  • Comment on Re^4: How to print a text document to RTF document

Replies are listed 'Best First'.
Re^5: How to print a text document to RTF document
by poj (Abbot) on Jul 10, 2017 at 17:15 UTC

    This is the document output, looks OK to me in Word and OpenOffice. What does it print for you ?

    {\rtf1\ansi\deff0{\fonttbl {\f0 \froman Times New Roman;} } {\colortbl ;\red255\green0\blue0;\red0\green255\blue0;\red0\green0\blu +e255;\red255\green128\blue0;} {\info {\creatim \yr2017\mo7\dy10\hr17\min20\sec45} {\revtim \yr2017\mo7\dy10\hr17\min20\sec45} {\title Color Test} {\doccomm written by rtf1\'2epl [Perl RT\'46::Writer v1\'2e11]} } {\pard \cf1 This is Red \par} {\pard \cf2 This is Green \par} {\pard \cf3 This is Blue \par} {\pard \cf4 This is Orange \par} }

      I got it to work. Thanks!