Suppressing Print based upon SubReport row count
I am using RB 17.02 build 149 with Delphi XE (that's the important
details out of the way, hopefully!)
I am designing a label, based upon a pipeline (from a Stored Procedure
which I can't change) which always contains at least 1 row.
However - only some of the rows in this pipeline may be relevant for
display on the label.
In order to constrain these relevant lines to a specific place on the
label, and to overflow onto multiple labels, I have placed the
"static"/"always printed" fields from the Pipeline into the "Main:
Header" section, and created a "SubReport1" which has a Variable within
the Detail band to show or hide the individual items for each row based
upon a number of scenarios.
When the SubReport is displaying 0 rows, I do not want the label to be
printed. The report will still need to be called, and return back to the
calling application as though the print has been successful, but it
should not print any copies to the specified printer.
Is this possible?
This discussion has been closed.