API Documentation > CorelDRAW > 2025-v26 > ImportFilter > ICorelImportFilter
ImportFilter.HasDialog property
Syntax:
Property Get HasDialog() As Boolean
Remarks:
The HasDialog property returns a read-only Boolean (True or False) value that indicates whether an import filter has a filter-specific dialog box. If the filter has a filter-specific dialog box, a value of True is returned.
Examples:
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