Visualizing a subreport only in one copy of main report
in Subreports
Hi all,
I have a report, which I want to print in three copies. In this report, I have a subreport, which I only need to print once. The subreport is in the summary band of the main report.
In all the ways I've tried to go by doing this, I always end up with only two copies of the main report (the third gets cut).
Any ideas if it is possible to achieve having the subreport in only one of the copies of the main report, while keeping the number of copies that need to be printed?
I have a report, which I want to print in three copies. In this report, I have a subreport, which I only need to print once. The subreport is in the summary band of the main report.
In all the ways I've tried to go by doing this, I always end up with only two copies of the main report (the third gets cut).
Any ideas if it is possible to achieve having the subreport in only one of the copies of the main report, while keeping the number of copies that need to be printed?
Comments
If I understand correctly, you would like the subreport to be visible only for the first copy of the report, then hide it for subsequent copies.
If this is the case, take a look at the following article/example. The example shows how to show/hide a label based on the copy number however you could do the same thing hiding and showing a subreport as well. I suggest using the BeforePrint event or the Band.BeforePrint event to do so.
http://rbwiki.digital-metaphors.com/delphi-code/formatting-delphi-code/how-to-unique-caption-for-each-copy/
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com