ActiveReports 8
Name Property
See Also  Example
GrapeCity.ActiveReports.Document.v8 Assembly > GrapeCity.ActiveReports.Document Namespace > SectionDocument Class : Name Property

Glossary Item Box

Gets or sets the name of the document.

Syntax

Visual Basic (Declaration) 
Public Property Name As System.String
C# 
public System.string Name {get; set;}

Property Value

A string value that represents the name of the document.

Remarks

The name of the document appears in the print job listing of the printer when the document is printed.

Example

C#Copy Code
private void btnPrint_Click(object sender, System.EventArgs e)
{
    arv.Document.Name = System.Windows.Forms.SystemInformation.UserName;
    arv.Document.Print();
}
Visual BasicCopy Code
Private Sub btnPrint_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPrint.Click
    arv.Document.Name = System.Windows.Forms.SystemInformation.UserName
    arv.Document.Print()
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