ImageEn, unit iexRichEdit

TIERichEdit.InsertObjectFromFile

TIERichEdit.InsertObjectFromFile


Declaration

procedure InsertObjectFromFile(const FileName: string; Iconic: Boolean = False);


Description

Insert an embedded OLE object from the contents of a file.
Iconic specifies whether the object is shown as an icon (true) or inplace (false).

Note: Method will fail if AllowObjects = False


Example

// Insert an Excel OLE object
IERichEdit1.InsertObjectFromFile( 'D:\ssheet.xlsx' );