Example

Dim PrSet as Object
Dim ConnList as Object

Set PrSet = CreateObject("ZIEWin.autECLPrinterSettings")
Set ConnList = CreateObject("ZIEWin.autECLConnList")
' Initialize the connection
ConnList.Refresh
PrSet.SetConnectionByHandle(ConnList(1).Handle)

If PrSet. PDTFile = vbNullString Then ' get the
  ...
Else
  ...