Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Making a sub-report an option.

edited December 2003 in General
I just finished expanding a large report with a sub-report. It is a M/D
relationship using pipeline links. Finally, it works perfect.
My client asked if I could now make it an option. When expanding the
exisiting report, I moved what was in the original header to the group
header and added a detail with the sub-report.

If I suppress the creation of the subreport, can I still print the group?
Larry

ps of course, my other option is to simply make a second report.

Comments

  • edited December 2003
    Hi Larry,

    You can remove a subreport temporarily from a report by simply setting its
    Visibility to False and disconnecting it from a pipeline.

    MySubreport.Visible := False;
    MySubreport.Report.DataPipeline := nil;

    You might also want to consider using the drilldown capability of the
    subreports. This allows the end user to compress and inflate the subreports
    in the preview by clicking a link. For examples of drilldown reports,
    please see the main reporting demo located in the \RBuilder\Demos\1.
    Reports\... directory. Demos 151 - 160 are all drilldown reports.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited December 2003
    Thanks,
    I am controlling the visibility and it works great.
This discussion has been closed.