RichText.SaveToFile

RichText.SaveToFile ( 

string ObjectName,

string Filename )

Example 1

-- Saves the modified license text document.
RichText.SaveToFile("RichText1", Shell.GetFolder(SHF_MYDOCUMENTS).."\\License.rtf");

-- Test for error
error = Application.GetLastError();
if (error ~= 0) then
    Dialog.Message("Error", _tblErrorMessages[error], MB_OK, MB_ICONEXCLAMATION);
end

Saves the text in the "RichText1" richtext object to an RTF file called "License.rtf" in the 'My Documents' folder.

See also:  Related Actions