If you are adding information to a temporary table WITHIN the report you want to output it from:
One way: you need to add a section of the INTEGER table somewhere after you have completely filled your temporary table and filter the INTEGER in the section OnPreDataItem on the number of records written into the temp. table. Do a temptable.FINDSET in this section. Then you loop through your temp. table, doing a temptable.NEXT if the integer is unequal to 1…