rvico TRichView Reference | TRichView

TCustomRichView.SaveRTF

Top  Previous  Next

Exports TRichView document (or the selected part, if SelectionOnly=True) to the file FileName as RTF (Rich Text Format).

function SaveRTF(const FileName: String; SelectionOnly: Boolean):Boolean;

(introduced in version 1.3)

Options for saving are in RTFOptions property.

By default, inserted controls are not saved. You can save them yourself using OnSaveComponentToFile event.

By default, items tags are saved as targets of hypertext links. You can customize saving using OnWriteHyperlink event.

You can:

completely change RTF code for certain items using OnSaveItemToFile event;

insert additional code in RTF in OnSaveRTFExtra event;

insert RTF codes in text.

 

Return value: "successful saving?"

 

See also methods:

SaveRTFToStream;

CopyRTF;

LoadRTF.

See also properties:

RTFOptions;

UseStyleTemplates.

See also events:

OnWriteHyperlink;

OnSaveComponentToFile;

OnSaveRTFExtra;

OnSaveItemToFile;

OnProgress.

See also:

Saving and loading in RichView.


TRichView © trichview.com