add_ole_object_frame method

add_ole_object_frame

Adds a new OLE object to the end of a collection.

Returns

Created OLE object.

def add_ole_object_frame(self, x, y, width, height, data_info):
    ...
ParameterTypeDescription
xfloatX coordinate of a new OLE frame.
yfloatY coordinate of a new OLE frame.
widthfloatWidth of a new OLE frame.
heightfloatHeight of a new OLE frame.
data_infoIOleEmbeddedDataInfoEmbedded data info IOleEmbeddedDataInfo.

add_ole_object_frame

Adds a new OLE object to the end of a collection.

Returns

Created OLE object.

def add_ole_object_frame(self, x, y, width, height, class_name, path):
    ...
ParameterTypeDescription
xfloatX coordinate of a new OLE frame.
yfloatY coordinate of a new OLE frame.
widthfloatWidth of a new OLE frame.
heightfloatHeight of a new OLE frame.
class_namestrName of an OLE class.
pathstrPath to the linked file.

The path is stored in the presentation as is. If a relative path is specified

the corresponding file will be inaccessible when opening the presentation from a different directory.

See Also