RpPrinter:TextOut() Method
<< Click to Display Table of Contents >> RpPrinter:TextOut() Method |
![]() ![]() ![]() |
Purpose
To print text on the printer or print preview window.
Syntax
<oRpPrinter>:TextOut([nY], [nX], cText, [nAlignment], [oTextColor],
[oBkGndColor])
Arguments
nY |
Optional. The row on which to print the text. The default is the current PROW setting. |
nX |
Optional. The column on which to print the text. The default is the current PCOL setting. |
cText |
The text to print. |
nAlignment |
Optional. The text alignment. Valid settings are: ALIGN_RIGHT, ALIGN_CENTER, ALIGN_LEFT. The default is ALIGN_LEFT. |
oTextColor |
Optional. Color object for setting the text color. The default is Color{COLORBLACK}. |
oBkGndColor |
Optional. Color object for setting the background color. The default is Color{COLORWHITE}. |
Description
This method provides a wrapper around the Windows API TextOut() function. It provides a quick, simple way to print text.
Example
// Print some text
oRpPrinter:TextOut(, , "Hello World!")