Retrieves an array of status codes from the printer. Use this method if the Port Type specified in the configuration file is COMx:, WPPORT, or SOCKET.
[Visual Basic]
Public Function GetStatus(portString As string) As String
[C#]
public int[] GetStatus(string portString);
portString
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:
An array of status codes as returned by the printer. A null array indicates that the printer is incapable of this function based on a missing or null entry in the printer configuration file.
This method may only be called from outside a print job. This function opens the printer, retrieves data, and closes the printer afterwards.
The portString parameter replaces the network address and port specified in the configuration file, allowing easier programmatic determination of the network printer target.