Share via


ReportDocument.SetParameterValue Method (Integer,Object)

Sets the current value of a parameter field at the specified index. 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 index As Integer, _   
    ByVal val As Object _   
) 
public virtual void SetParameterValue (
    int index,
    object val
)

Parameters

  • index
    The index 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

This example sets a parameter at the specified index to 10.

'Declaration

      myReportDocument.SetParameterValue("2", 10)
      
      reportDocument->SetParameterValue("2", 10);
      
      reportDocument.SetParameterValue("2", 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