rvico TRichView Reference | TRVOfficeConverter

TRVOfficeConverter.ImportRV

Top  Previous  Next

Imports content of file in foreign format to rv.

function ImportRV(const FileName: String; rv: TCustomRichView;

  ConverterIndex: Integer): Boolean;

Parameters:

FileName is a name of file to import.

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

This method:

1.clears Stream;
2.imports data from the file to  Stream;
3.reads data from  Stream in rv, using rv.LoadRTFFromStream,
4.clears Stream.

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

Return value:

True if the import was successful, False if not.

See also:

ImportRTF;
ExportRV.


RichView © Sergey Tkachenko