You can make values of the subreport return to the primary report. To do this:
, and a parameter in the primary report of the same data type will be displayed in the Parameters column of the Return Value box. If the automatically assigned parameter is not what you need, select the required one from the parameter drop-down list.Notes:
For example, all the formulas which referenced the return value parameter should be like:
pagenumber;
... ... ...
... ... ...