CreateFromFile(FileName: String);
FileName. Path to the file that contains the created COM object.
The CreateFromFile method creates and places to a component the COM object that enables the user to work with the file, the path to which is passed as an input parameter.
This method is supported for working with Microsoft Word and Microsoft Excel files.
NOTE. On dynamic creation of the OleDocumentBox component the CreateFromFile method can be used only after the Parent property is set for the component.
See also: