ImageEn, unit iexRichEdit

TIERichEdit.SaveToFile

TIERichEdit.SaveToFile


Declaration

function SaveToFile(AFilename: string = ''): Boolean;


Description

Save the content to the specified file.
If a filename is not specified, it defaults to Filename, and falls back to prompting the user for a filename.
If CanImportExport = True is true, saving to Word and PDF is supported
Result is true if the save succeeds.


Example

// Save the document to the current file, prompting the user if there is not a current filename
IERichEdit1.Save();


See Also

PromptToSave
OpenFromFile
PromptToOpen
ExportToWord
Filename