PrepareReport

edited 8:01PM in FastReport 4.0
hi,
I seem to be having problems with the TfrxReport.PrepareReport method. I want to build a report from smaller reports, which are stored on disk. I have the following code...

procedure ExecuteReports;
begin
Marineprop_Report.LoadFromFile(FPath + 'rpt_VesselProperties.fr3');
Marineprop_Report.PrepareReport;
Marineprop_Report.LoadFromFile(FPath + 'rpt_ResistanceCalculations.fr3');
Marineprop_Report.PrepareReport(False);
Marineprop_Report.LoadFromFile(FPath + 'rpt_PropellerCalculations.fr3');
Marineprop_Report.PrepareReport(False);
Marineprop_Report.LoadFromFile(FPath + 'rpt_Chart1.fr3');
Marineprop_Report.PrepareReport(False);
Marineprop_Report.LoadFromFile(FPath + 'rpt_Chart2.fr3');
Marineprop_Report.PrepareReport(False);
Marineprop_Report.ShowPreparedReport;
end;

when I execute this block of code, the only report in the preview window is rpt_Chart2.
why are the other reports being ignored?

TIA,
Arthur

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.