Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

ParameterDescription of FieldsCommentsDefault
Parm1 – TextRTF<1> TextRTFRTF text""

See also

TEXT Set_Printer message

Remarks

In order to place colors or anything that is a not single font and its simple attributes (bold, italic, underline), you need to provide the RTF header yourself in the code. The easiest way to do this is to create a document in WordPad, save it, open it in Notepad and copy the code into your Basic+ code. (See the below example).

Example

 
Code Block
/* The following example shows how to use the TEXTRTF message to bold text in the middle of a paragraph. */
 
declare function Set_Printer
stat = Set_Printer("INIT") ;* Start printing
stat = Set_Printer("TEXTRTF", "This is a {\b simple} RTF test.")
stat = Set_Printer("TERM") ;* End printing

...