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

Glossary Item Box

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

Syntax

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

Property Value

String.

Remarks

The password is used with the ActiveReports RDF file format.

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

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