Format element
The required Format element identifies the format of the current document as a MIME media type.
Format 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:Format>
text
</wprt:Format>
Attributes
There are no attributes.
Text value
Required. Must be one of the following values:
- application/octet-stream
- application/postscript
- application/vnd.hp-PCL
- application/vnd.pwg-xhtml-print+xml
- image/g3fax
- image/gif
- image/jpeg
- iamge/png
- image/tiff
- image/tiff-fx
- text/html
- text/plain
- text/plain; charset=utf-8
- unknown
- Any IHV-defined values
Child elements
There are no child elements.
Parent elements
Element | Description |
---|---|
Describes all attributes associated with the basic creation of the current document. |
Remarks
If the Print Service supports the application/octet-stream value, the Print Service must be capable of auto-sensing the format of the document data. For such a Print Service, if the client doesn't know the document format, the client should supply the application/octet-stream value and let the printer determine the format.
A client can supply the unknown value when it doesn't know the document format of the data. The Print Service can handle the unknown value in an implementation-specific manner. If the printer can perform auto-sensing (the application/octet-stream behavior), it should handle unknown in the same manner.
A WSD Print Service must support the unknown value. IHVs can both extend and subset the allowed values for this element.
See also
Send comments about this topic to Microsoft
Build date: 7/19/2012