Share via


JobStatus element

The required JobStatus element contains all information about the status of the current job.

JobStatus is defined in the namespace at this URI: https://schemas.microsoft.com/windows/2006/08/wdp/print and referenced by the prefix wprt. (This resource may not be available in some languages and countries.)

Usage

<wprt:JobStatus>
  child elements
</wprt:JobStatus>

Attributes

There are no attributes.

Text value

None

Child elements

Element Description

JobId

Uniquely identifies a job on a printer.

JobState

Specifies the current state or the completion state of the job.

JobStateReasons

Contains all additional information about why the job is in its current state.

KOctetsProcessed

Specifies the total amount of document content that has been processed by the printer.

MediaSheetsCompleted

Specifies the number of media sheets the printer has completed and stacked for the job so far.

NumberOfDocuments

Specifies the number of documents in the current job.

Xxx

Any IHV-defined elements

Parent elements

Element Description

Job

Contains all elements associated with a print job.

Remarks

The WSD Print Service should update JobStatus elements accordingly as it processes a job. Job status can be indirectly affected by a client operation, such as CancelJobRequest.

The WSD Print Service notifies a client about changes to a job's status through a JobStatusEvent element. The Print Service should generate a JobStatusEvent element for every change to all the JobStatus child elements.

A client can query for job status through the GetJobElementsRequest 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 you are referencing child elements in the correct namespace.

<wprt:JobStatus>
 <wprt:JobId> data </wprt:JobId>
 <wprt:JobState> data </wprt:JobState>
 <wprt:JobStateReasons> data </wprt:JobStateReasons>
  ...
</wprt:JobStatus>

See also

CancelJobRequest

GetJobElementsRequest

Job

JobId

JobState

JobStateReasons

JobStatusEvent

KOctetsProcessed

MediaSheetsCompleted

NumberOfDocuments

 

 

Send comments about this topic to Microsoft

Build date: 7/19/2012