See Also

PageSettings Class  | PageSettings Members  | PaperSize property  | PaperHeight

Language

Visual Basic

C#

Show All

See Also Languages ActiveReports Send feedback to Data Dynamics

PaperWidth Property

Gets or sets a value that specifies the width of a custom paper size.

[Visual Basic]
Public Property PaperWidth As Single
[C#]
public float PaperWidth {get; set;}

Return Type

A float value that specifies the custom paper width in inches.

Remarks

Set the PaperKind property to PaperKind.Custom to use this property.  Custom paper sizes must be supported by the printer for this property to work.

Example

[C#] 

private void rptPageSettings_ReportStart(object sender, System.EventArgs eArgs) 

    this.PageSettings.PaperHeight = 11.0f; 
    this.PageSettings.PaperKind = System.Drawing.Printing.PaperKind.Custom; 
    this.PageSettings.PaperWidth = 8.5f;     
}

[Visual Basic] 

Private Sub rptPageSettings_ReportStart(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.ReportStart
   Me.PageSettings.PaperHeight = 11.0F
   Me.PageSettings.PaperKind = System.Drawing.Printing.PaperKind.Custom
   Me.PageSettings.PaperWidth = 8.5F
End Sub

See Also

PageSettings Class  | PageSettings Members  | PaperSize property  | PaperHeight

 

 


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