ActiveReports 9
PaperWidth Property (PageSettings)
Example 

Gets or sets a value that specifies the width, in inches, of a custom paper size.
Syntax
'Declaration
 
Public Property PaperWidth As System.Single
public System.float PaperWidth {get; set;}

Property Value

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
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;    
}
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

Reference

PageSettings Class
PageSettings Members
PaperKind Property
PaperHeight Property

 

 


Copyright © 2016 GrapeCity, inc. All rights reserved

Support Forum