Combining Reports

Erik van der GaagErik van der Gaag New Zealand
edited 3:59PM 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

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.