ActiveReports 18 .NET Edition
MESCIUS.ActiveReports Assembly / GrapeCity.ActiveReports Namespace / PageSettings Class / Margins Property
Example

In This Topic
    Margins Property (PageSettings)
    In This Topic
    Gets or sets the default page margins of the report document.
    Syntax
    'Declaration
     
    Public Property Margins As Margins
    public Margins Margins {get; set;}

    Property Value

    A Margins object that specifies the top, bottom, left and right margin settings in inches.
    Example
    private void rptPageSettings_ReportStart(object sender, System.EventArgs eArgs)
    {
        this.PageSettings.Margins.Bottom = 1.0f;
        this.PageSettings.Margins.Left = 1.0f;
        this.PageSettings.Margins.Right = 1.0f;
        this.PageSettings.Margins.Top = 1.0f;
    }
    Private Sub rptPageSettings_ReportStart(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.ReportStart
       Me.PageSettings.Margins.Bottom = 1.0F
       Me.PageSettings.Margins.Left = 1.0F
       Me.PageSettings.Margins.Right = 1.0F
       Me.PageSettings.Margins.Top = 1.0F
    End Sub
    See Also