示例
以下示例展示了如何使用连接句柄为新创建的 autECLPageSettings 对象设置连接。
Dim PgSet as Object
Dim ConnList as Object
Set PgSet = CreateObject("ZIEWin.autECLPageSettings")
Set ConnList = CreateObject("ZIEWin.autECLConnList")
' Initialize the connection
ConnList.Refresh
PgSet.SetConnectionByHandle(ConnList(1).Handle)
' For example, see if Font CPI is set
If PgSet.FontCPI Then
'your logic here...
End If