TCustomRichView.SaveText, SaveTextW

<< Click to display table of contents >>

TCustomRichView.SaveText, SaveTextW

The methods export the document to the text file FileName in the specified (SaveText) or in Unicode (UTF-16) (SaveTextW) encoding.

function SaveText(const FileName: TRVUnicodeString;

  LineWidth: Integer;  CodePage: Cardinal=CP_ACP): Boolean;

function SaveTextW(const FileName: TRVUnicodeString;

  LineWidth: Integer): Boolean;

(changed in version 18)

Parameters:

FileName – output file name.

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

 

unicode Unicode notes:.

Internally, text is stored as Unicode. SaveText converts Unicode using CodePage parameter. If CodePage=CP_ACP, Style.DefCodePage is used instead.

 

Return value: "successful saving?"

 

See also methods:

▪SaveTextToStream, SaveTextToStreamW;

▪LoadText, LoadTextW.

See also events:

▪OnSaveImage2;

▪OnSaveComponentToFile;

▪OnSaveItemToFile.

See also:

▪Saving and loading RichView documents.