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 to work with the file, the path to which is passed as an 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 can be used only after the Parent property is set for the component.

See also:

IOleDocumentBox