autECLPrinterSettings 对象

autECLPrinterSettings 对象让您可访问 ZIEWin.autECLPrinterSettings 类中包含的方法。请参阅 autECLPageSettings 类 以获取更多信息。

以下示例展示了 autECLPageSettings 对象。

DIM SessObj as Object
Set SessObj = CreateObject("ZIEWin.autECLSession")
' Initialize the session
SessObj.SetConnectionByName("A")

'For example, set the Windows default printer
SessObj.autECLPrinterSettings.SetWinDefaultPrinter

VBSCRIPT 中也支持 autECLPrinterSettings 对象。以下示例展示了如何使用 VBSCRIPT。

sub test_()
  autECLSession.SetConnectionByName(ThisSessionName)
  autECLSession.autECLPrinterSettings.SetWinDefaultPrinter
end sub