PrintDocument for WinForms | ComponentOne
C1.Win.PrintPreview.4.5.2 Assembly / C1.Win.C1Preview.Design Namespace / SampleC1PrintDocument 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 C1.C1Preview.C1PrintDocument.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