PrintDocument.SetPreviewPage method

Applies to Windows only

Sets the specified print page as the current print preview page.

Syntax


Public Sub SetPreviewPage(
  pageNumber As Integer,  
  pageVisual As UIElement 
)

Parameters

pageNumber

Type: System.Int32 [.NET] | int32 [C++]

The sequence number of the page to preview.

pageVisual

Type: UIElement

The root visual object for the requested print page.

Requirements

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:
© 2014 Microsoft