Concatinating reports with Composite Report
I have to concatenate n reports with the same template (each report has 7 diffrent datasets, so I can't group whole report). Each report has difefrent dataset values.
Well it's hard to describe, so I am trying sth like this:
CompositeReport.Reports.Clear;
for i := 1 to WorkerNumber do begin
Creating ReportForThisWorker
CompositeReport.Reports.Add(ReportForThisWorker)
end;
In the end all values in composite report was from last ReportForThisWorker.
So I tried to save prepared reports on disk, load them and add them into composite report, but ShowReport or ShowPreparedReport does nothing (emfPages.count = 0)...
Can anyone help me?
Well it's hard to describe, so I am trying sth like this:
CompositeReport.Reports.Clear;
for i := 1 to WorkerNumber do begin
Creating ReportForThisWorker
CompositeReport.Reports.Add(ReportForThisWorker)
end;
In the end all values in composite report was from last ReportForThisWorker.
So I tried to save prepared reports on disk, load them and add them into composite report, but ShowReport or ShowPreparedReport does nothing (emfPages.count = 0)...
Can anyone help me?
Comments
First understand you require a report component for each report to be added to the composite
so your underlying delphi form will have 1 composite report component + n report components. for a good example on how 2 load and set the composite see
the code in unit1 of the main frdemo.
regards