This documentation is archived and is not being maintained.

PrintDialog.MaxPage Property

Gets or sets the highest page number that is allowed in page ranges.

Namespace: System.Windows.Controls
Assembly: PresentationFramework (in presentationframework.dll)
XML Namespace:

public uint MaxPage { get; set; }
/** @property */
public UInt32 get_MaxPage ()

/** @property */
public void set_MaxPage (UInt32 value)

public function get MaxPage () : uint

public function set MaxPage (value : uint)

<object MaxPage="uint" .../>

Property Value

A UInt32 that represents the highest page number that can be used in a page range in the Print dialog box.

Exception typeCondition


The property is being set to less than 1.

Users who click Print when the Print dialog box is set to print pages outside the range that is set by the MaxPage and MinPage values will get an error message advising them of the maximum and minimum page numbers. Nothing will be printed.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0