Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets the current value of a parameter field in a subreport. 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, _
ByVal subreport As String _
)
public virtual void SetParameterValue (
string name,
object val,
string subreport
)
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.
- subreport
The name of the subreport to which the parameter field belong.
Example
The following example sets a parameter in the subreport to 10.
'Declaration
myReportDocument.SetParameterValue("parameter1", 10, "subreport1")
reportDocument->SetParameterValue("parameter1", 10, "subreport1");
reportDocument.SetParameterValue("parameter1", 10, "subreport1");
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