IOleDocumentBox.CreateFromFile

Syntax

CreateFromFile(FileName: String);

Parameters

FileName. Path to the file that contains the created COM object.

Description

The CreateFromFile method creates and places to a component the COM object that enables the user ro work with the file path to which is passed as the input parameter.

Comments

This method is supported for working with Microsoft Word and Microsoft Excel files.

NOTE. On dynamic creation of the OleDocumentBox component the CreateFromFile method is available to use only after setting of the Parent property for the component.

See also:

IOleDocumentBox