RTF:LoadRTFFromFile() Method
<< Click to Display Table of Contents >> RTF:LoadRTFFromFile() Method |
![]() ![]() ![]() |
Purpose
To load and parse a RTF stream from an external file.
Syntax
<oRTF>:LoadRTFFromFile(cFileName) → lSuccess (LOGIC)
Arguments
cFileName |
The file name (including path) of the RTF file. |
Description
This method loads and parses a RTF stream from an external file. The file must contain a valid RTF stream or it is ignored. This method returns TRUE if successful, or FALSE if an error is encountered. If this method executes successfully, you can display the RTF on a RpPrinter or PtrDevice via the RTF:DrawText() method.
There is no 64K size limitation when loading a RTF stream from an external file.
Example
// Load a RTF stream from a file
oRTF:LoadRTFFromFile("C:\RP2\RPWP.RTF")