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

I need to combine a non-Report Builder page(s) in the middle of the pages of a RB report

edited July 2005 in Devices
Hi
and thank you for reading

I need to print a *.prn file between each page of a report.
I use PrintFile('file.prn') at the event 'EndPage' of the ppReport, because
the file (prn) i print, depends on a variable in the page of the report.

for every page of the report -> must print 'ppDBTextArticle.text'+'.prn'

The problem is that the print is in the wrong order. Some prn's first then
the pages of the report and then some more prn's. The overall the order is
correct, but the pages are not being printed in a intercalated form...

Any ideas? Is there a better way?

Comments

  • edited July 2005

    I think what is happening is that the ReportBuilder report is printed by one
    print job and each call you make is generating a separate print job also.
    You can pause the printer in the Windows Print Queue, then run the report
    and look at the queue to check this.

    A ReportBuilder report typically starts and ends a windows print job.
    Therefore the
    report pages will be printed sequentially.

    There is a way to prevent ReportBuilder from starting/ending a print job for
    each report that it prints. For an example see
    RBuilder\Demos\Reports\Demo.dpr and check out demo 23 (dm0123.pas.)

    The TppPrinterDevice class in ReportBuilder manages this process. It
    starts/ends a print job, starts/ends pages, and renderers text, shapes,
    images to the printer. It use the TppPrinter class to do this. See
    RBuilder\Source for units ppPrnDev.pas and ppPrintr.pas.




    --
    Nard Moseley
    Digital Metaphors Corporation
    http://www.digital-metaphors.com


    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.