Reference to report parameters

Top  Previous  Next

In order to refer to report parameters, you should use its name:

 

[Parameter1]

 

Parameters can be nested. In this case, you should use both parent and child parameter names in the following form:

 

[ParentParameter.ChildParameter]

 

Parameters have a definite data type. It is set in the "DataType" property of the parameter. The way it can be used in an expression depends on parameter's data type.

 

FastReport converts reference to a report parameter into the following way:

 

((string)Report.GetParameterValue("Parameter1"))