Previous Document Next Document

Object Model Reference : Classes : L : Layer : Methods : Layer.CreateOLEObjectFromFile


Layer.CreateOLEObjectFromFile

Function CreateOLEObjectFromFile(FileName As String, [Link As Boolean = False], [DisplayAsIcon As Boolean = False], [Caption As String], [Icon As Variant]) As Shape

Description

Member of Layer

The CreateOLEObjectFromFile method creates a new OLE object from file.

Parameter
Description
FileName
Specifies the filename of the OLE object
Link
Specifies a link to the OLE object. This parameter is optional, and its default value is False.
DisplayAsIcon
Specifies whether to display the OLE object as an icon. This parameter is optional, and its default value is False.
Caption
Specifies a caption for the OLE object. This parameter is optional.
Icon
Specifies an icon for the OLE object. This parameter is optional.

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.