Previous Document Next Document

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


Layer.ImportEx

Function ImportEx(FileName As String, [Filter As cdrFilter = cdrAutoSense], [Options As StructImportOptions]) As ImportFilter

Description

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.

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.