combit List & Label 30 - .NET Help
combit.Reporting Namespace / PrintJobInfoEventArgs Class / JobStatus Property


JobStatus Property

Combination of state flags (JOB_STATUS_-constants in WINSPOOL.H).

Syntax
'Declaration
 
Public ReadOnly Property JobStatus As Integer
 
Remarks

The detail depth depends on the print spooler. Please note that all machines involved in the print process (i.e. print server and client) need to run in modern NT-based operating systems.

 

The dwState flags are defined as follows:

Const Value
JOB_STATUS_PAUSED 0x00000001
JOB_STATUS_ERROR 0x00000002
JOB_STATUS_DELETING 0x00000004
JOB_STATUS_SPOOLING 0x00000008
JOB_STATUS_PRINTING 0x00000010
JOB_STATUS_OFFLINE 0x00000020
JOB_STATUS_PAPEROUT 0x00000040
JOB_STATUS_PRINTED 0x00000080
JOB_STATUS_DELETED 0x00000100
JOB_STATUS_BLOCKED_DEVQ 0x00000200
JOB_STATUS_USER_INTERVENTION 0x00000400
JOB_STATUS_RESTART 0x00000800

Requirements

Platforms: Windows 10 (Version 21H2 - 23H2), Windows 11 (21H2 - 22H2), Windows Server 2016 - 2022
.NET: .NET Framework 4.8, .NET 6, .NET 8, .NET 9

See Also