Object Model Reference : Classes : L : Layer : Methods : Layer.ImportEx |
Function ImportEx(FileName As String, [Filter As cdrFilter = cdrAutoSense], [Options As StructImportOptions]) As ImportFilter
Member of Layer
The ImportEx method imports a file and returns an ImportFilter object.
Parameter
|
Description
|
FileName
|
Specifies the file to import
|
Filter
|
Specifies the import filter, and returns cdrFilter. This parameter is optional, and its default value is cdrAutoSense (0).
|
Options
|
Specifies additional parameters for the import. This parameter is optional, and its default value is Nothing.
|
The following VBA example imports the specified Corel Presentation Exchange (CMX) file to the active layer.
Sub Test() |
Dim im As ImportFilter |
Set im = ActiveLayer.ImportEx(SetupPath & "Draw\CustomMediaStrokes\Arrow.cmx") |
im.Finish |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.