ActiveReports 14 .NET Edition
GrapeCity.ActiveReports.Document Assembly / GrapeCity.ActiveReports.Document Namespace / SectionDocument Class / Password Property
Example

In This Topic
    Password Property (SectionDocument)
    In This Topic
    Gets or sets a password string used to protect the saved document file.
    Syntax
    'Declaration
     
    Public Property Password As String
    public string Password {get; set;}

    Property Value

    String.
    Remarks
    The password is used with the ActiveReports RDF file format.
    Example
    private void btnSave_Click(object sender, System.EventArgs e)
    {
        arv.Document.Password = "Mortimer";
        arv.Document.Save(Application.StartupPath + "\\Document.rdf");
    }
    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
    See Also