PrintDialog.MaxPage Property


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

 property System::UInt32 MaxPage { System::UInt32 get(); void set(System::UInt32 value); };
public uint MaxPage { get; set; }
member this.MaxPage : uint32 with get, set
Public Property MaxPage As UInteger

Property Value


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


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.

Applies to