ActiveReports3 Request technical support
PaperName Property
See Also  Example


Gets or sets the name of the type of paper.

Syntax

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

Return Value

String. The name of the type of custom paper.

Example

C#Copy Code
private void rptDataDynamics_ReportStart(object sender, System.EventArgs eArgs)
{
   
this.PageSettings.PaperKind = System.Drawing.Printing.PaperKind.Custom;
   
this.PageSettings.PaperHeight = 3;
   
this.PageSettings.PaperName = "Logo Labels";
   
this.PageSettings.PaperWidth = 5;
   
}
Visual BasicCopy Code
Private Sub rptDD_ReportStart(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.ReportStart
    Me.PageSettings.PaperKind = Printing.PaperKind.Custom
    Me.PageSettings.PaperHeight = 3
    Me.PageSettings.PaperName = "Logo Labels"
    Me.PageSettings.PaperWidth = 5
End Sub

Remarks

You can set the paper name only if the PaperKind property is set to Custom. To use custom paper sizes, you must set the PaperKind property to Custom and set the PaperName property to a unique string. 

See Also