ActiveReports.Viewer3 Request technical support
Name Property
See Also  Example


Gets or sets the name of the document.

Syntax

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

Return Value

A string value that represents the name of the document.

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

Remarks

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

See Also