Control Reference > VSPrinter Control > VSPrinter Properties > Port Property |
Returns or sets the name of the current port.
[form!]VSPrinter.Port[ = value As String ]
You can use this property to provide user feedback -- so users know which printer port is currently selected -- or to select the printer port you want to use.
You cannot change this property while creating a document. If you want to select a port, do so before calling the StartDoc method. You can only set this property to a valid port name. To obtain a list of valid port names, read the Ports() property.
If the DefaultDevice property is set to True, the port selected will become the default port for all Windows applications.
String