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

Any Limits on the number of subreports on a Report

edited April 2005 in Subreports
Hi,

-Is there a limit on the number of subreports per report? I want to make a
report consisting of 4 pbsection style subreports. Each pbsectionreport will
contain a number of pbchild subreports. I would need +/- 150 subreports to
get this done. Is this a good idea?
- Each pbchildreport will have to print data from the same pipeline but only
a range from the total of rows. In each pbchildreport.OnPrint event i will
activate a filter (See below) and it will be only printed when it contains
filtered data. Is it ok to activate a filter on the
pbchildreport.DataPipeline.DataSet in the pbchild subreport.OnPrint ?

procedure TForm3.ppSubReport1Print(Sender: TObject);
begin
Details.DisableControls;
try
Details.Filtered := False;
Details.OnFilterRecord := DetailsFilter11Record;
Details.Filtered := True;
finally
Details.EnableControls;
end;

ppSubReport1.Visible := not(Details.IsEmpty);
end;


Greetings,
Filip Moons

Comments

  • edited April 2005
    Hi Filip,

    Although we have never tested a report with 150 subreports, is should be
    possible. If this gets too dificult to manage, you may consider saving
    these subreports as templates and creating them dynamically as you need them
    in your main report.

    Also, firing the code below in the Subreport.OnPrint event may not be early
    enough to set that subreport's visibility to False. You may need to do this
    in the Band.BeforePrint event.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.