PrintSystemJobInfo.NumberOfPages Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the number of pages in the print job.
public:
property int NumberOfPages { int get(); };
public int NumberOfPages { get; }
member this.NumberOfPages : int
Public ReadOnly Property NumberOfPages As Integer
Property Value
An Int32 that states the number of pages in the print job.
Remarks
A page is one side of a sheet of paper or other print media.
The following table shows how the value of this property, and the number of sheets used, is affected by whether the print job calls for two-sided printing (duplexing), whether it calls for multiple pages-per-sheet, or whether it calls for both.
How duplexing and multipage printing affect printing
Duplexing | Pages per sheet | Value of NumberOfPages | Number of physical sheets of paper |
---|---|---|---|
No | 1 | Identical to the number of pages in the document. | Identical to the number of pages in the document. |
Yes | 1 | Identical to the number of pages in the document. | Document pages ÷ 2 (rounded up). |
No | Multiple | Document pages ÷ Pages per sheet (rounded up). | Document pages ÷ Pages per sheet (rounded up). |
Yes | Multiple | Document pages ÷ Pages per sheet (rounded up). | [Document pages ÷ Pages per sheet] ÷ 2 (rounded up). |