Previous Document Next Document
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.

Parameters
Description
FileName
Specifies the file to import
Filter
Specifies the filter that is used when importing objects. This value 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 code example imports a Corel Presentation Exchange (CMX) file on 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 2007 Corel Corporation. All rights reserved.