ActiveReports 8
PaperKind Property
See Also  Example
GrapeCity.ActiveReports.v8 Assembly > GrapeCity.ActiveReports Namespace > PageSettings Class : PaperKind Property

Glossary Item Box

Gets or sets the kind of paper to be used to print the report.

Syntax

Visual Basic (Declaration) 
Public Property PaperKind As System.Drawing.Printing.PaperKind
C# 
public System.Drawing.Printing.PaperKind PaperKind {get; set;}

Property Value

A System.Drawing.Printing.PaperKind enumeration value that determines the paper size to use.

Remarks

To use custom paper sizes, you must set the PaperKind property to Custom and the PaperName property to a unique string.

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.PaperName = "My Paper";
    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.PaperName = "My Paper"
   Me.PageSettings.PaperWidth = 8.5F
End Sub

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also