Previous Document Next Document

Object Model Reference : Classes : I : ImportFilter : Properties : ImportFilter.HasDialog


ImportFilter.HasDialog

Property HasDialog As Boolean

Description

Member of ImportFilter

The HasDialog determines whether an import filter has a dialog box associated with it.

The HasDialog property returns a read-only value.

VBA example

The following VBA example imports the file C:\Example.jpg and returns an ImportFilter object that is used to determine whether the filter has a dialog box. If the filter has a dialog box, that dialog box is displayed; otherwise, the default JPEG settings are applied. The Finish method is called to finish the import.

Sub Test()
 Dim d As Document
 Dim s As Shape
 Dim i As ImportFilter
 Set d = CreateDocument
 Set i = d.ActiveLayer.ImportEx("C:\Example.jpg", cdrJPEG)
 If i.HasDialog Then
  i.ShowDialog
  i.Finish
 Else
  i.Reset
  i.Finish
 End If
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.