User1471008070 posted
Hi,
You should create the subreport's dataset on the main report, then you can know whether there is value or not on the subreport, you can make use of Count or CountRows function to calculate subreport dataset's records, then you can write the
expression to control rectangle's visibility.
Thanks,
challen Fu