RpPrinter:DrawRTF() Method
<< Click to Display Table of Contents >> RpPrinter:DrawRTF() Method |
![]() ![]() ![]() |
Purpose
To draw a file based RTF stream on the printer or print preview window.
Syntax
<oRpPrinter>:DrawRTF([nY], [nX], cFileName, [nHeight], [nWidth], [nStartChar])
Arguments
nY |
Optional. The row to start printing the RTF stream. The default is the current PROW setting. |
nX |
Optional. The column to start printing the RTF stream. The default is the current PCOL setting. |
cFileName |
The full name (including path) of the file containing the RTF stream. |
nHeight |
Optional. The height of the rectangle bounding the RTF text. The default is the remaining space on the current page. |
nWidth |
Optional. The width of the rectangle bounding the RTF text. The default is the remaining space on the current page. |
nStartChar |
Optional. The character in the RTF text to start printing at. The default is the first character. |
Description
This method prints an RTF stream on the printer or print preview window. It automatically handles loading and parsing the RTF stream from a file. Currently, ReportPro only supports a subset of the RTF standard. For more information on RTF support, see the RTF class discussion.
Example
// Draw an RTF stream from a file
oRpPrinter:DrawRTF(, , "C:\MYAPP\TEXT.RTF")