RTF:LoadRTFFromDynaString() Method

<< Click to Display Table of Contents >>

Navigation:  RTF Class >

RTF:LoadRTFFromDynaString() Method

Previous pageReturn to chapter overviewNext page

Purpose

To load and parse a RTF stream from a string.

Syntax

<oRTF>:LoadRTFFromDynaString(cString) lSuccess                                (LOGIC)

Arguments

cString

String which contains the RTF stream.

Description

This method loads and parses a RTF stream from a string.  The string 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.

 

Due to the 64K size limit of strings in a 16 bit application, the size of the RTF stream must be less than 64K when using the RP2/16 runtime.

Example

// Load a RTF stream

cString:=fieldget(3)

oRTF:LoadRTFFromDynaString(cString)