LinePrinter.Open (string) Method

Opens a communications connection between the mobile computer and the printer. Use this method if the Port Type specified in the configuration file is COMx:, WPPORT, or SOCKET.

Syntax

[Visual Basic]
Public Function Open(portStr As string) As void
[C#]
public void Open(string portStr);

Parameters

portStr
If the Port Type specified in the configuration file is COMx: or WPPORT, this value is the new port that replaces the port specified in the configuration file.

If the Port Type specified in the configuration file is SOCKET, this value can be any of the following:

Return Values

Void.

Remarks

Actions taken during Open include:

The portString parameter replaces the network address and port specified in the configuration file, allowing easier programmatic determination of the network printer target.

Exceptions

LinePrinterException

More Information

LinePrinter Class