Skip to content

GetStatus

Description

Gets the current printer status.

Syntax

public int GetStatus()

Return value

Returns the printer status as an integer.
If communication with the printer is not possible, the value 0x80000000 is returned.
The printer status bits are defined as follows:

Bit Function 0 1
0 Out-of-paper error No error Error
1 Paper jam error while detecting mark No error Error
2 Hardware error No error Error
3 Communication error No error Error
4 Idle state Operating Idle
5 Reserved Fixed -
6 Reserved - Fixed
7 Reserved Fixed -
8~30 Reserved Fixed -
31 communication with the printer possible not possible

Note

If marked paper is removed from the paper insertion slot, the printer may be unable to detect an out‑of‑paper error.

Sample

var status = printerManager.GetStatus();
Console.WriteLine(status);