LinePrinter.GetStatus Method

Retrieves an array of status codes from the printer.

Syntax

[Visual Basic]
Public Function GetStatus() As String
[C#]
public int[] GetStatus();

Parameters

None.

Return Values

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.

Remarks

This method may only be called from outside a print job. This function opens the printer, retrieves data, and closes the printer afterwards.

More Information

LinePrinter Class