SetParam

ACCPAC Common Controls

AccpacReport.SetParam

Sets a value to the specified report parameter name.

Function SetParam(
  ParamName As String,
  ParamValue As String) As Boolean

Parameters

ParamName

[in] the report parameter name (must be valid parameter defined for the current report)

ParamValue

[in] the report parameter's value

Return Value

Returns whether the parameter was successfully set. The function returns FALSE if the specified parameter name is not recognized as a valid parameter defined for the report.

Remarks

SetParam calls should be made before PrintReport is called.