add_ole_object_frame method

add_ole_object_frame

Creates a new OLE object frame and adds it to the end of the shape collection.

Returns

The newly created IOleObjectFrame.

def add_ole_object_frame(self, x, y, width, height, data_info):
    ...
ParameterTypeDescription
xfloatThe x-coordinate of the new OLE frame, in points.
yfloatThe y-coordinate of the new OLE frame, in points.
widthfloatThe width of the new OLE frame, in points.
heightfloatThe height of the new OLE frame, in points.
data_infoIOleEmbeddedDataInfoThe embedded OLE data information (IOleEmbeddedDataInfo).

add_ole_object_frame

Creates a new OLE object frame and adds it to the end of the shape collection.

Returns

The newly created IOleObjectFrame.

def add_ole_object_frame(self, x, y, width, height, class_name, path):
    ...
ParameterTypeDescription
xfloatThe x-coordinate of the new OLE frame, in points.
yfloatThe y-coordinate of the new OLE frame, in points.
widthfloatThe width of the new OLE frame, in points.
heightfloatThe height of the new OLE frame, in points.
class_namestrThe class name of the OLE object.
pathstrThe path to the linked file.

This path is stored verbatim in the presentation.

If a relative path is specified, the file will be inaccessible when opening

the presentation from a different directory.

See Also