Object Model Reference : Classes : P : Printer : Properties : Printer.Port |
Property Port As String
Member of Printer
The Port property returns the name of the port (for example, LPT1) to which a printer prints.
The Port property returns a read-only value.
The following VBA example displays the port of the default printer.
Sub Test() |
MsgBox "The default printer prints to: " & Printers.Default.Port |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.