ActiveReports 8
Margins Property
See Also  Example
GrapeCity.ActiveReports.v8 Assembly > GrapeCity.ActiveReports Namespace > PageSettings Class : Margins Property

Glossary Item Box

Gets or sets the default page margins of the report document.

Syntax

Visual Basic (Declaration) 
Public Property Margins As Margins
C# 
public Margins Margins {get; set;}

Property Value

A Margins object that specifies the top, bottom, left and right margin settings in inches.

Example

C#Copy Code
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;
}
Visual BasicCopy Code
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

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also