rvico TRichView Reference | TRVOfficeConverter


Top  Previous  Next

Converts data from the file in foreign format to RTF data in Stream

function ImportRTF(const FileName: TRVUnicodeString;

  ConverterIndex: Integer): Boolean;

(changed in version 18)


FileName is a name of file to import.

ConverterIndex is an index of import converter (in ImportConverters list)

The method clears Stream and writes RTF (Rich Text Format) document in it.

You can provide a visual indication for the conversion progress using OnConverting event.

Note: Internally, the component converts the file name to OEM (DOS) encoding to pass it to the converter. If FileName contains characters that cannot be converted to OEM encoding, this method fails.

Return value:

True if the import was successful, False if not.

See also:



See also properties:


TRichView © trichview.com