PaperSource class

Office 2013 and later

Defines the PaperSource Class. When the object is serialized out as xml, its qualified name is w:paperSrc.

Namespace:  DocumentFormat.OpenXml.Wordprocessing
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

public class PaperSource : OpenXmlLeafElement

[ISO/IEC 29500-1 1st Edition]

paperSrc (Paper Source Information)

This element specifies printer-specific settings for the printer tray(s) that shall be used to print different pages in this section in the document.

[Example: Consider a section which must use the best possible tray when printing all pages in this section. This information is specified using the following WordprocessingML:

<w:paperSrc w:first="1" w:other="1" />

The attributes on the paperSrc element specify the printer codes for the trays to be used when printing this section. end example]

Parent Elements

sectPr (§17.6.17); sectPr (§17.6.18); sectPr (§17.6.19)

Attributes

Description

first (First Page Printer Tray Code)

Specifies a printer-specific code that uniquely identifies a specific printer tray to be used to print the first page of this section in the document.

A first value of 1 (the default) is specifically used to indicate that the printer shall automatically select the appropriate printer tray based on the printed page size.

[Example: Consider a section which must use the best possible tray when printing the first page in this section. This information is specified using the following WordprocessingML:

<w:paperSrc w:first="1" w:other="1" />

The first attribute on the paperSrc element specifies that the printer must automatically select the appropriate printer tray based on the printed page size when printing the first page in this section. end example]

The possible values for this attribute are defined by the ST_DecimalNumber simple type (§17.18.10).

other (Non-First Page Printer Tray Code)

Specifies a printer-specific code that uniquely identifies a specific printer tray to be used to print the each subsequent (non-first) page of this section in the document.

An value of 1 (the default) is specifically used to indicate that the printer shall automatically select the appropriate printer tray based on the printed page size.

[Example: Consider a section which must use the best possible tray when printing the all pages in this section. This information is specified using the following WordprocessingML:

<w:paperSrc w:first="1" w:other="1" />

The other attribute on the paperSrc element specifies that the printer must automatically select the appropriate printer tray based on the printed page size when printing all pages after the first in this section. end example]

The possible values for this attribute are defined by the ST_DecimalNumber simple type (§17.18.10).

[Note: The W3C XML Schema definition of this element’s content model (CT_PaperSource) is located in §A.1. end note]

© ISO/IEC29500: 2008.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: