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? ;)

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 9:46AM
    Hi
    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 ;)

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.