Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Printing reports

edited July 2003 in General
Hi,

I would like to print reports in reports.
We have several reports created, but we would like to print 1 report and
this report prints all the other reports.
I know we can make some batch where all reports are printed one by one, but
we would like to do it in '1 report' because of
page numbering.
Each individual report has it's own page numbering, starting from 1. We
would like to print all of these records with the right page numbers.

Maybe this can be done in a batch printing job too, but I don't know how we
can do that.

Any suggestions?
We use RBuilder 7.02 Enterprise / Delphi 7

Regards,
Wouter Devos

Comments

  • edited July 2003
    Wouter,

    You need to load each report template into a subreport component either
    manually or dynamically on one main report. This way you will be able to
    count the total pages and the individual subreport pages and print all your
    reports at once as if it were one large report.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2003
    Nico,

    So I need to create report template files of it?
    Now I have all reports stored on one form per report and some code related
    to variables in the unit itself.
    Will this work fine?
    Where do I put the subreports, in which bands do I put them?

    Regards,
    Wouter Devos

  • edited July 2003
    Hi Woulter,

    Check out Demo 123 located in your \RBuilder\Demos\1. Reports\... directory.
    (dm0123.pas). This example shows how to send multiple reports to a printer
    as if they were one print job. You will just need to include all your
    existing report forms and load the report objects from there like it does in
    the example.

    Another option would be to save all your reports as Templates, load them
    into subreports on a single report and move all your event handlers over to
    the new application. You would then have to be sure that all the events
    were unique and had the same name as when you saved the reports as
    templates.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2003
    Nico,

    Thanks for pointing me in the right direction. I'll take a look at the demo
    application first thing tomorrow.
    I'll keep you informed about the progress.

    Regards,
    Wouter Devos
    XLent Solutions

This discussion has been closed.