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

more report prints on a single print job

edited June 2006 in General
?Hi,
I need to print more reports (labels) to a single print job, in order to
improve print speed.

I use RB 10.02 with delphi 7 and a Zebra Z4mplus printer with proper
windows drivers.

Reading documentation I found TppReport.PrinterDevice.StartPrintJob /
EndPrintJob properties. This properties are read only in TppReport, but
they are accessible via BeforePrint event of TppReport. So I tried to
set EndPrintJob to False into the first BeforePrint Event, and then to
reset to True into the last BeforePrint Event.

I obtain an immediate print of the first report, then the other reports
remain into the printer spool until I close my application.

Debugging my application I note that the value of
PrinterDevice.EndPrintJob is resetted to the default value (True) when I
print the second report (but it should be setted to False from the
previous report).

Someone can help me?

Thanks



--- posted by geoForum on http://delphi.newswhat.com

Comments

  • edited June 2006

    To use that technique requires that you programmatically create the
    TppPrinterDevice instance, connect it to the Report and then call
    Report.PrintToDevices.

    For an example check out demo 123 (dm0123.pas) in
    RBuilder\Demos\Reports\Demo.dpr




    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited July 2006
    Fine, now it works,

    thanks

    to
    but
    reports
    when I



    --- posted by geoForum on http://delphi.newswhat.com
This discussion has been closed.