rvico TRichView Reference | TRichView

TCustomRichView.SaveText, SaveTextW

Top  Previous  Next

The methods export document to ANSI (SaveText) or Unicode (SaveTextW) text file.

function SaveText(const FileName: String; LineWidth: Integer): Boolean;

function SaveTextW(const FileName: String; LineWidth: Integer): Boolean;

Parameters:

FileName – output file name.

LineWidth is used for saving breaks (they are saved as LineWidth '-' characters)

 

unicode Unicode note: recommended for Unicode applications.

SaveText: text of Unicode styles is converted basing on TRVStyle.DefCodePage.

SaveTextW: text of ANSI styles is converted basing on its character sets (if Charset=DEFAULT_CHARSET, it is converted using TRVStyle.DefCodePage).

 

Return value: "successful saving?"

 

See also methods:

SaveTextToStream, SaveTextToStreamW;
LoadText, LoadTextW.

See also events:

OnSaveImage2;
OnSaveComponentToFile;
OnSaveItemToFile.

See also:

Saving and loading RichView documents.


RichView © Sergey Tkachenko