ActiveReports.Viewer3 Request technical support
Password Property
See Also  Example


Gets or sets a password string used to protect the saved document file.

Syntax

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

Return Value

String.

Example

C#Copy Code
private void btnSave_Click(object sender, System.EventArgs e)
{
   arv.Document.Password =
"Mortimer";
   arv.Document.Save(Application.StartupPath +
"\\Document.rdf");
}
Visual BasicCopy Code
Private Sub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click
    arv.Document.Password = "Mortimer"
    arv.Document.Save(Application.StartupPath & "Document.rdf")
End Sub

Remarks

The password is used with the ActiveReports RDF file format.

See Also