Gets or sets a value that specifies whether the margins will be mirrored for every other page of the document.
Syntax
Visual Basic (Declaration) | |
---|
Public Property MirrorMargins As System.Boolean |
C# | |
---|
public System.bool MirrorMargins {get; set;} |
Property Value
Boolean. True if margins should be mirrored; otherwise, False. The default value is False.
Remarks
Example
Visual Basic | Copy Code |
---|
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 | Copy Code |
---|
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 |
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