Visual Basic (Declaration) | |
---|---|
Public Property Password As System.String |
C# | |
---|---|
public System.string Password {get; set;} |
Property Value
String.The password is used with the ActiveReports RDF file format.
C# | Copy Code |
---|---|
private void btnSave_Click(object sender, System.EventArgs e) { arv.Document.Password = "Mortimer"; arv.Document.Save(Application.StartupPath + "\\Document.rdf"); } |
Visual Basic | Copy 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 |