Previous Document Next Document
Printer.Port

Property Port As String

Member of Printer

The Port property returns the name of the port (for example, LPT1) to which the printer prints.

The Port property returns a read-only value.

The following code example displays the port of the default printer:

Sub Test() 
 MsgBox "The default printer prints to: " & Printers.Default.Port 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.