See Also

PageSettings Class  | PageSettings Members

Language

Visual Basic

C#

Show All

See Also Languages ActiveReports Send feedback to Data Dynamics

MirrorMargins Property

Gets or sets a value that specifies whether the margins will be mirrored for every other page of the document.

[Visual Basic]
Public Property MirrorMargins As Boolean
[C#]
public bool MirrorMargins {get; set;}

Return Type

Boolean. True if margins should be mirrored; otherwise, False.  The default value is False.

Remarks

Use this property when printing in duplex and the left and right margins are not equal.  This would alternate the margins between odd and even pages.

Example

[Visual Basic] 

Private void rptPageSettings_ReportStart(object sender, System.EventArgs eArgs)
{
    this.PageSettings.Duplex = System.Drawing.Printing.Duplex.Vertical;
    this.PageSettings.Margins.Bottom = 1.0f;
    this.PageSettings.Margins.Left = 1.5f;
    this.PageSettings.Margins.Right = 1.0f;
    this.PageSettings.Margins.Top = 1.0f;
    this.PageSettings.MirrorMargins = True;
}

[Visual Basic] 

Private Sub rptPageSettings_ReportStart(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.ReportStart
   Me.PageSettings.Duplex = System.Drawing.Printing.Duplex.Vertical
   Me.PageSettings.Margins.Bottom = 1.0F
   Me.PageSettings.Margins.Left = 1.5F
   Me.PageSettings.Margins.Right = 1.0F
   Me.PageSettings.Margins.Top = 1.0F
   Me.PageSettings.MirrorMargins = True
End Sub

See Also

PageSettings Class  | PageSettings Members

 

 


Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.