ActiveReports3 Request technical support
Value Property
See Also  Example


Gets or sets the value of the parameter to be used in parameter placeholder substitution.

Syntax

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

Return Value

A string value that is used to replace the parameter placeholder text in the report's data source SQL query.

Example

C#Copy Code
private void button1_Click(object sender, System.EventArgs e)
{
   ActiveReport1 rpt =
new ActiveReport1();
   rpt.Parameters[
"country"].Value = "Germany";
   rpt.Run();
   arv.Document = rpt.Document;
}
Visual BasicCopy Code
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Dim rpt As New ActiveReport1
    rpt.Parameters("country").Value = "Germany"
    rpt.Run()
    arv.Document = rpt.Document
End Sub

See Also