ImageEn, unit iexRichEdit

TIERichEdit.OpenFromFile

TIERichEdit.OpenFromFile


Declaration

function OpenFromFile(const AFilename: string): Boolean;


Description

Load content from the specified file.
Caption specifies the title text for the Open dialog. If unspecified it defaults to a localized version of "Open File".
If CanImportExport = True, loading from Word and PDF is permitted.
Result is true if the load succeeds.


Example

// Load a document
IERichEdit1.Load( 'C:\myfile.rtf' );


See Also

 PromptToOpen
 SaveToFile
 PromptToSave
 ImportFromWord
 Filename