ActiveReports3 Request technical support
PaperHeight Property
See Also  Example


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

Syntax

Visual Basic (Declaration) 
Public Property PaperHeight As Single
Visual Basic (Usage)Copy Code
Dim instance As PageSettings
Dim value As Single
 
instance.PaperHeight = value
 
value = instance.PaperHeight
C# 
public float PaperHeight {get; set;}

Return Value

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

Example

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

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.

See Also