Specifies the file name of the document to be used as a template for the embedded object. If not specified, the embedding will be created from a new object. Creating a new object will automatically launch the application associated with the new object's type.
Specifies the name of the OLE object type of the embedded object. Not needed if SourceDoc is specified, but required if SourceDoc is not specified.
Description
Creates an embedded object in the referenced SmartFrame2d object.
Syntax
Visual Basic
Public Sub CreateEmbed( _
Optional ByVal SourceDoc As Variant, _
Optional ByVal ObjectType As Variant _
)
Parameters
SourceDoc
Specifies the file name of the document to be used as a template for the embedded object. If not specified, the embedding will be created from a new object. Creating a new object will automatically launch the application associated with the new object's type.
ObjectType
Specifies the name of the OLE object type of the embedded object. Not needed if SourceDoc is specified, but required if SourceDoc is not specified.
Remarks
If an object is already occupying the frame, it is replaced. When you create a new object, the application associated with the ObjectType must be correctly registered in the registry. This is generally done when the application is installed.