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

Multiple Reports in a Same Time

edited June 2001 in General
Hi All
I face a difficulties to print multiple report in a same time.
My ppReport1 is attached to ppDBPipeline1.
My ppDBPipeline1 is attached to a Query1.
The Query1 is initializing depending upon the selection range of user.
I need depending upon the selection range, for each range
the whole report i.s. Title band, Header band and Detail band should
initialize and print
depending upon the data in Query1.
I have written the following code.

For selection := range1 to range2 do
begin
try
with query1 do
begin
query1.close;
parambyname('CLIENTID').AsInteger := selection;
query1.open;
end;
ppReport.Reset.
// -- Initializing the report
ppReport.Print;
finally
query1.close;
end;

But the problem is after printing 1st selection range the report stops.
when I close the report then again the report are coming.
I need the whole report i.s. for all selection range should come together
instead of close the Report.
Please give me the right direction for this.

Thank u
Ajit


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.250 / Virus Database: 123 - Release Date: 4/18/01

Comments

  • edited June 2001
    Sounds like a candidate for subreports. Demo #51-52 use section style
    subreports in order to print different reports together as one. Use
    subreports when you want to print a report, one right after another. You
    could create a master detail relationship. For your situation, create a
    master dataset which will be all of the ClientID's in the range that you
    want to print. Then create a detail dataset which will supply the data for
    each ClientID. Copy and paste your current main report layout to the
    subreport. Connect the subreport to the detail pipeline. Now the subreport
    will print once for every ClientID.


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.