SaveRTF
Description
Exports document (or the selected part, if SelectionOnly=True) to the file FileName as RTF (Rich Text Format).
function SaveRTF (const FileName: String; SelectionOnly: Boolean = False): Boolean;
Parameter |
Description |
FileName |
The name of the output RTF file. |
SelectionOnly |
Optional parameter. If True, only selected part of the document is saved. |
Example
if Form1.RichEdit1.SaveRTF('d:\file.rtf') then
ShowMessage('File saved successfully')
else
ShowMessage('There was an error during the export.');