The function
sets the text parameter of the report defined by the reference variable
refId.
Note
The report parameter can be also defined by right-clicking
the report and select the item Parameters. In the displayed
dialog box set required values and click the button OK.