rvico TRichView Reference | TRVOfficeConverter

RVOfficeConverter TRVOfficeConverter

Properties   Methods   Events

Top  Previous  Next

TRVOfficeConverter allows using text converters from Microsoft Office (32-bit versions) with RichViews, for importing and exporting files in different formats.

Unit RVOfficeCnv;

Syntax

TRVOfficeConverter = class (TComponent)

(introduced in version 1.6)

Hierarchy

TObject

TPersistent

TComponent

How to Use

There are two types of converters: for importing and for exporting files.

Export converters convert RTF (Rich Text Format) to other formats, import converters convert different formats to RTF.

Lists of available converters are in ImportConverters and ExportConverters properties.

If there are no converters installed, converters lists are empty.

Note: some converters are shipped with Windows.

GetImportFilter and GetExportFilter return strings for assigning to Filter property of file-selection dialogs.

There are two modes for using this components.

1.You can convert RTF from Stream to file in another format (ExportRTF), or you can convert file to RTF Stream (ImportRTF).

2.You can export content of TRichView component in a file (ExportRV) or import from file (ImportRV). Such conversion still uses Stream internally.

While converting, the component generates OnConverting event.

If PreviewMode property is set to True, converters do their work silently, without displaying any dialogs. They can also produce lower quality results in this mode (that depends on a converter).

Platform notes

This component is useful only in 32-bit applications, because converters are 32-bit DLLs.

Demo projects

Demos\Delphi\OfficeConverters\

Demos\CBuilder\OfficeConverters\

Additional resources

Microsoft Office Compatibility Pack for Word, Excel, and PowerPoint File Formats contains a set of converters for new formats of Microsoft Office

 


TRichView © trichview.com