Gets or sets the left margin for each page, in twips.
Namespace:
C1.C1ReportAssembly: C1.C1Report.2 (in C1.C1Report.2.dll)
Syntax
C# |
---|
[DefaultValueAttribute()] public double MarginLeft { get; set; } |
Visual Basic |
---|
<DefaultValueAttribute()> _ Public Property MarginLeft As Double Get Set |
Remarks
The margins are measured in twips, from the edges of the paper. You can select the paper size and orientation using the PaperSize and Orientation properties.
The default value for this property is 1440.
Examples
The following VBScript expression increases the MarginLeft property on odd pages (leaves the default value on even pages) to add a gutter margin to a report:
Copy CodeC#
' VBScript: Report.OnOpen gutter = report.layout.marginleft ' initialize variable ' VBScript: Report.OnPage report.layout.marginleft = Iif(page mod 2 = 1, gutter, gutter - 1440) |
For details, see the Creating a Gutter Margin topic.