Combining Reports

Erik van der GaagErik van der Gaag New Zealand
edited 11:02PM in FastReport 4.0
Hi there

To generate the reports we make, I have the different sections of the report broken up into different units so that I can re-use the sections for the different report types we allow.

This has been working fine so far. ? But now I want one section to be a Page Header for every page of the report.

I am using the following code to put the report together as needed:
procedure AddSection(Report: TfrxReport);
begin
? Â Â  aStream.Clear;
? Â Â  Report.SaveToStream(aStream);
? Â Â  aStream.Position := 0;
? Â Â  CombindedReport.LoadFromStream(aStream);
? Â Â  CombindedReport.PrepareReport(False);
end;

However, when I add the section that has TfrxPageHeader band, it does not persist beyond the first page.

Is there anything I can do to make this work?

Regards, ? Erik.

Leave a Comment