PrinterStatus element
The required PrinterStatus element contains the current status of printer-related information that is controlled by automata.
PrinterStatus is defined in the namespace at this URI: https://schemas.microsoft.com/windows/2005/05/wdp/print and referenced by the prefix wprt. (This resource may not be available in some languages and countries.)
Usage
<wprt:PrinterStatus>
child elements
</wprt:PrinterStatus>
Attributes
There are no attributes.
Text value
None
Child elements
Element | Description |
---|---|
A list of DeviceCondition elements that describe all the currently active conditions and/or errors on the device. |
|
A collection of ConditionHistoryEntry elements that provide details about recent conditions and errors on the printer. |
|
Specifies the current date and time according to the printer's internal clock. |
|
Specifies the primary reason for why the printer is in its current state. |
|
Identifies the current state of the WSD Print Service. |
|
A list of PrinterStateReason elements that describes all the reasons why the printer is in its current state. |
|
Specifies the number of tracked jobs the printer has currently accepted but not yet finished printing. |
|
Xxx |
Any IHV-defined elements |
Parent elements
Element | Description |
---|---|
None |
None |
Remarks
The WSD Print Service can inform a client about changes to the printer's status through PrinterStatusSummaryEvent, PrinterStatusConditionEvent, and PrinterStatusConditionClearedEvent events.
A client can directly query the printer's state by calling the GetPrinterElementsRequest operation.
The following syntax block shows that you must also prefix the names of the child elements with the appropriate namespace (in this case wprt), to be certain that your name references apply to child elements in the correct namespace.
<wprt:PrinterStatus>
<wprt:PrinterCurrentTime> data </wprt:PrinterCurrentTime>
<wprt:PrinterState> data </wprt:PrinterState>
...
<wprt:QueuedJobCount> data </wprt:QueuedJobCount>
...
</wprt:PrinterStatus>
See also
PrinterStatusConditionClearedEvent
Send comments about this topic to Microsoft
Build date: 7/19/2012