Share via


DefaultPrintTicket element

The required DefaultPrintTicket element contains all of the printer's current default values for job and document creation.

DefaultPrintTicket 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:DefaultPrintTicket>
  child elements
</wprt:DefaultPrintTicket>

Attributes

There are no attributes.

Text value

None

Child elements

Element Description

DocumentProcessing

Contains all of the requested processing attributes that are applicable at the document level.

JobDescription

Contains basic creation information for the currently identified job.

JobProcessing

Contains all of the requested processing attributes that are applicable at the job level.

Xxx

Any IHV-defined elements.

Parent elements

Element Description

ElementData Element for parent PrinterElements

Contains the element data that the GetPrinterElementsResponse operation returns to the client.

Remarks

The DefaultPrintTicket element is an instance of the PrintTicket element. It describes the current set of default values that the WSD Print Service will apply when a job is created without specific processing elements. A client can request the printer's DefaultPrintTicket element through the GetPrinterElementsRequest operation and then use it without error when requesting a print job through the CreatePrintJobRequest operation.

In the following example code, note 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.

Examples

The following code sample shows a printer's DefaultPrintTicket element:

<wprt:DefaultPrintTicket>
  <wprt:JobDescription>
    <wprt:JobName>DefaultName</wprt:JobName>
    <wprt:JobOriginatingUserName>DefaultUser</wprt:JobOriginatingUserName>
  </wprt:JobDescription>
  <wprt:JobProcessing>
    <wprt:Copies>1</wprt:Copies>
    <wprt:JobFinishings>
      <wprt:Collate>false</wprt:Collate>
      <wprt:JogOffset>true</wprt:JogOffset>
      <wprt:Staple>
        <wprt:Location>None</wprt:Location>
        <wprt:Angle>Slanted</wprt:Angle>
      </wprt:Staple>
      <wprt:HolePunch>
        <wprt:Edge>None</wprt:Edge>
        <wprt:Pattern>TwoHoleUSTop</wprt:Pattern>
      </wprt:HolePunch>
    </wprt:JobFinishings>
    <wprt:Priority>50</wprt:Priority>
  </wprt:JobProcessing>
  <wprt:DocumentProcessing>
    <wprt:MediaSizeName>na_letter_8.5x11in</wprt:MediaSizeName>
    <wprt:MediaType>stationery</wprt:MediaType>
    <wprt:NumberUp>
      <wprt:PagesPerSheet>1</wprt:PagesPerSheet>
      <wprt:Direction>RightDown</wprt:Direction>
    </wprt:NumberUp>
    <wprt:Orientation>Portrait</wprt:Orientation>
    <wprt:Resolution>
      <wprt:Width>600</wprt:Width>
    </wprt:Resolution>
    <wprt:PrintQuality>Normal</wprt:PrintQuality>
    <wprt:Sides>OneSided</wprt:Sides>
  </wprt:DocumentProcessing>
</wprt:DefaultPrintTicket>

See also

CreatePrintJobRequest

DocumentProcessing

ElementData Element for parent PrinterElements

GetPrinterElementsRequest

GetPrinterElementsResponse

JobDescription

JobProcessing

PrintTicket

 

 

Send comments about this topic to Microsoft

Build date: 7/19/2012