ReportDocument.SetParameterValue Method (String,Object)
Sets the current value of a parameter field. The value can be a primitive, ParameterValue, an array of either type, or a ParameterValues collection.
Namespace CrystalDecisions.CrystalReports.Engine Assembly CrystalDecisions.CrystalReports.Engine (CrystalDecisions.CrystalReports.Engine.dll)
Syntax
'Declaration
Public Overrideable Sub SetParameterValue ( _
ByVal name As String, _
ByVal val As Object _
)
public virtual void SetParameterValue (
string name,
object val
)
Parameters
- name
The name of the parameter field.
- val
Represents a valid parameter value. It can be a primitive, ParameterValue, an array of either type, or a ParameterValues collection.
Example
The following example sets a parameter in the report to 10.
'Declaration
myReportDocument.SetParameterValue("parameter1", 10)
reportDocument.SetParameterValue("parameter1", 10);
Version Information
Crystal Reports Basic for Visual Studio 2008
Supported since: Crystal Reports .NET 9
See Also
Reference
ReportDocument Class
ReportDocument Members
CrystalDecisions.CrystalReports.Engine Namespace