Gets or sets the default page layout for the current document. This property is a shortcut for Default. (A page layout includes page settings, page headers and footers, and column definitions.)

Namespace:  C1.C1Preview
Assembly:  C1.C1Report.2 (in C1.C1Report.2.dll)

Syntax

Examples

The following example changes the page layout's page settings to Landscape:

Copy CodeVisual Basic
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    MakeDoc(C1PrintDocument1) 
    C1PrintDocument1.Generate()
End Sub 
Private Sub MakeDoc(ByVal doc As C1.C1Preview.C1PrintDocument)
    doc.PageLayout.PageSettings.Landscape = True
End Sub
Copy CodeC#
private void Form1_Load(object sender, EventArgs e)
{
    MakeDoc(c1PrintDocument1);
    c1PrintDocument1.Generate();
}
private void MakeDoc(C1.C1Preview.C1PrintDocument doc)
{
    doc.PageLayout.PageSettings.Landscape = true;
}

See Also