Gets or sets the custom height for the report, in twips.

Namespace:  C1.C1Report
Assembly:  C1.C1Report.2 (in C1.C1Report.2.dll)

Syntax

C#
[DefaultValueAttribute()]
public double CustomHeight { get; set; }
Visual Basic
<DefaultValueAttribute()> _
Public Property CustomHeight As Double
	Get
	Set

Remarks

To create reports using custom paper sizes, set the PaperSize property to Custom, then set the CustomWidth and CustomHeight properties to the size of the page measured in twips.

If the PaperSize is set to a value other than Custom, the paper size is determined by that setting. The CustomWidth and CustomHeight properties are not used in this case.

If the PaperSize is set to Custom and the CustomWidth or CustomHeight properties are set to zero, the printer's default paper size is used.

The default value for this property is 0.

Examples

The following code sets the report's custom height and width to 25" x 11", in twips:

Copy CodeVisual Basic
c1r.Layout.PaperSize = PaperKind.Custom
c1r.Layout.CustomHeight = 25 * 1440 ' in twips
c1r.Layout.CustomWidth = 11 * 1440
Copy CodeC#
c1r.Layout.PaperSize = PaperKind.Custom;
c1r.Layout.CustomHeight = 25 * 1440; // in twips
c1r.Layout.CustomWidth = 11 * 1440;

For an example using the CustomHeight property, see the Specifying Custom Paper Size topic.

See Also