Crystal Trick for using suppressing Sub-reports
I had a report (Crystal Reports XI R2) that contained one subreport that passed values back to my main report. I wanted to suppress (not show) the subreport on my main report; however I wanted to use the values from the shared variables (4 total shared variables). When I suppressed or hid the section in the main report where my subreport is, then it clears (zeroes) out my shared variable values. So what do you do.....
Well I found the answer!!
What you need to do is on your subreport hide all of the fields. On the main report right click on the subreport and click on the last tab. Check the suppress blank subreport checkbox. This will allow your shared variables to still run without showing them. Their will still be a blank space on your main report. If you want to get rid of that go into the section export, and for the band which has the subreport in it, select underlay following section and suppress blank subreport. Now you will not have an empty space either.