Assembly: C1.C1Report.2 (in C1.C1Report.2.dll)
Syntax
C# |
---|
[DefaultValueAttribute()] public double CustomWidth { get; set; } |
Visual Basic |
---|
<DefaultValueAttribute()> _ Public Property CustomWidth 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 11", in twips:
c1r.Layout.PaperSize = PaperKind.Custom c1r.Layout.CustomWidth = 11 * 1440 ' in twips |
c1r.Layout.PaperSize = PaperKind.Custom; c1r.Layout.CustomWidth = 11 * 1440; // in twips |
For an example using the CustomWidth property, see the Specifying Custom Paper Size topic.