In my main report I am having 13 supreports. I want to know whether I can suppress the whole subreport based on any subreport value? I want to change the numbering of hte supreports dynamically whether I can do it or not.
What are your subreports returning??? Single values??
The easiest way you handle that is to have the subreports return shared variables (or shared variable arrays) instead of displaying the result themselves.
Make all the lines of the subreport suppressed so that while it passes back a shared value...it will not show up in the report...(NOTE: for a subreport to execute...it must be on a non-suppressed line of the main report ... you cannot even conditionally suppress the main report section )
Since the subreport is designed for calculation and not display it can be made as small as you like in the main report....I always color-code them with a conditional background color in the format of the subreport on the main report...something like (if 1 = 1 then crNoColor else crRed)
placed in the conditional suppress will make it easy to find these subreports in design mode
I wrote a short article in my newsletter about a "stealth" subreport. You might find it helpful if you need a subreport to run, but want it to be invisible.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.