Reports for WinForms | ComponentOne
C1.C1Report.4 Assembly / C1.C1Preview Namespace / C1PrintDocument Class / NewPage Method / NewPage(PageLayout,PageDirectionEnum) Method
Specifies a layout which will be used for all following pages.
Indicates which page must be added - vertical or horizontal.

In This Topic
    NewPage(PageLayout,PageDirectionEnum) Method
    In This Topic
    Creates a new page and adds it to the document. Note that AllowNonReflowableDocs property on the document must be set to true for this method to work; otherwise, an exception will occur.
    Syntax
    'Declaration
     
    Public Overloads Sub NewPage( _
       ByVal pageLayout As PageLayout, _
       ByVal direction As PageDirectionEnum _
    ) 
    public void NewPage( 
       PageLayout pageLayout,
       PageDirectionEnum direction
    )

    Parameters

    pageLayout
    Specifies a layout which will be used for all following pages.
    direction
    Indicates which page must be added - vertical or horizontal.
    See Also