PrintSystemJobInfo.NumberOfPages Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the number of pages in the print job.

Namespace:   System.Printing
Assembly:  System.Printing (in System.Printing.dll)

public int NumberOfPages { get; internal set; }

Property Value

Type: System.Int32

An Int32 that states the number of pages in the print job.

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).

.NET Framework
Available since 3.0
Return to top
Show: