Windows Dev Center

PrintDocument.AddPages event

Occurs when the PrintManager requests the final collection of pages to send to the printer.

Syntax


public event AddPagesEventHandler AddPages

Event information

Delegate AddPagesEventHandler

Remarks

Provide Windows with printable pages by calling AddPage for each page to be printed. Pass a UIElement that is the printable content to the AddPage method. Call AddPagesComplete to signal that all of the pages to be printed have been added and Windows can continue with the print job.

If the user specifies particular pages or a range of pages in the print options UI, only the specified pages should be added to the print list.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.UI.Xaml.Printing
Windows::UI::Xaml::Printing [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

None supported

Namespace

Windows.UI.Xaml.Printing
Windows::UI::Xaml::Printing [C++]

Metadata

Windows.winmd

See also

PrintDocument
Quickstart: Adding simple print capability

 

 

Show:
© 2015 Microsoft