Overlay

edited 12:38PM in FastReport 4.0
Hi,

Is it possible to overlay 2 reports.
For example i have 2 report files i want to overlay in 1 report

Comments

  • edited 12:38PM
    Andreetje wrote: »
    Hi,

    Is it possible to overlay 2 reports.
    For example i have 2 report files i want to overlay in 1 report
    What do you mean? Print 2 reports on top of each other or merger 2 reports into one?
  • gpigpi
    edited 12:38PM
    See a Programmer's manual:
    wrote:
    1.9 Building a composite report (batch printing)
    In some cases it is required to organize printing of several reports at once, or
    capsulate and present several reports in one preview window. To perform this, there are
    tools in FastReport, which allow building a new report in addition to an already existing
    one. The ?«TfrxReport.PrepareReport?» method has the optional ?«ClearLastReport?»
    Boolean parameter, which is equal to ?«True?» by default. This parameter defines whether
    it is necessary to clear pages of the previously built report. The following code shows how
    to build a batch from two reports:
    Pascal:
    frxReport1.LoadFromFile('1.fr3');
    frxReport1.PrepareReport;
    frxReport1.LoadFromFile('2.fr3');
    frxReport1.PrepareReport(False);
    frxReport1.ShowPreparedReport;
    C++:
    frxReport1->LoadFromFile("1.fr3");
    frxReport1->PrepareReport(true);
    frxReport1->LoadFromFile("2.fr3");
    frxReport1->PrepareReport(false);
    frxReport1->ShowPreparedReport();
    We load the first report and build it without displaying. Then we load the second
    one into the same ?«TfrxReport?» object and build it with the ?«ClearLastReport?» parameter,
    equal to ?«False?». This allows the second report to be added to the one previously built.
    After that, we display a finished report in the preview window.
  • edited 12:38PM
    Hi,

    Found it myself.

    Add : Frxreport.InheritFromTemplate(filename);

    before
    the preparereport.

    the report in the filename has only an "overlay" band which is "on top"
    Then it displays as an real overlay !

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.