API Documentation
>
CorelDRAW
>
2025-v26
>
Printer
>
IPrnVBAPrinter
Printer.Port property
Returns the port name this printer is connected to
Syntax:
Property
Get
Port
(
)
As
String
Remarks:
The
Port
property returns a read-only value containing the name of the port (for example, LPT1) to which a printer prints.
Examples:
The following VBA example displays the port of the default printer.
Sub Test() MsgBox "The default printer prints to: " & Printers.Default.Port End Sub