Object Model Reference : Classes : A : Application : Properties : Application.Printers |
Property Printers As SystemPrinters
Member of Application
The Printers property returns the SystemPrinters collection object that contains a list of installed printers on the users system.
The Printers property returns a read-only value.
The following VBA example displays the name of the default printer and the port to which it is connected.
Sub Test() |
If Printers.Count = 0 Then |
MsgBox "There's no printer installed on the system." |
Exit Sub |
End If |
MsgBox "Default printer is: " & Printers.Default.Name & _ |
" on port: " & Printers.Default.Port |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.