PrintDocument for WinForms | ComponentOne
C1.Win.PrintPreview.8 Assembly / C1.Win.C1Preview.Design Namespace / SampleC1PrintDocument Class / MaxPages Property

In This Topic
    MaxPages Property (SampleC1PrintDocument)
    In This Topic
    Gets or sets the value limiting the maximum number of pages in the generated document.

    The default value is -1, indicating that the number of pages in the document is unlimited.

    This property is only taken into account when the document is created using the C1.C1Preview.C1PrintDocument.Generate method.

    Syntax
    'Declaration
     
    Public Property MaxPages As Integer
    public int MaxPages {get; set;}
    See Also