Previous Document Next Document

Object Model Reference : Classes : P : Printer : Properties : Printer.Port


Printer.Port

Property Port As String

Description

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.

VBA example

The following VBA 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 2013 Corel Corporation. All rights reserved.