MindFusion WinForms Programmer's Guide
ReportParameter.Value Property
See Also
 





Gets or sets the parameter value.

Namespace: MindFusion.Reporting
Assembly: MindFusion.Reporting

 Syntax

C#  Copy Code

public Object Value { get; set; }

Visual Basic  Copy Code

Public Property Value As Object

 Property Value

An object representing the parameter value.

 Remarks

Assigning this property automatically updates Type to reflect the type of the parameter. To create an expression parameter, the Type property needs to be assigned to Expression explicitly. Otherwise, the value will be interpreted as string.

 Example

The following example creates a parameter with an expression value:

C#  Copy Code

ReportParameter parameter = new ReportParameter("DayOfMonth", "[Day(Now())]");
parameter.Type = ReportParameterType.Expression;
report.Parameters.Add(parameter);

Visual Basic  Copy Code

Dim parameter As New ReportParameter("DayOfMonth", "[Day(Now())]")
parameter.Type = ReportParameterType.Expression
report.Parameters.Add(parameter)

 See Also

ReportParameter Members
ReportParameter Class
MindFusion.Reporting Namespace