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

EndJob doesn't release job from print queue

edited March 2005 in General
I'm printing a bunch of reports (1 for each record in a table) & am using
the technique shown in dm0123.

After printing all the reports, I issue an lPrinterDevice.EndJob command,
but the job shows as "Adding" in my novell print queue. I've tried
resetdevices and also setting lPrinterDevice.EndPrintJob := True, but still
the same result.

What do I do the kick this job and get it to print?

In the bad old days, we used to send a ctrl-Z to the printer port, but I
don't see the equivalent here.

Jeremy

Comments

  • edited March 2005
    Hi Jeremy,

    I am unable to recreate this issue on my machine. Which version of
    ReportBuilder/Delphi are you using? Are you able to recreate the issue
    using Demo 123 or something similar? If so, please send the exact steps I
    can take to see the problem.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited March 2005
    Nico, I'm working with D7, RBE7.0

    Seems that you've got to set lPrinterDevice.EndPrintJob := true before
    printing the last page. If you don't, there's apparently no way to end the
    job & kick the last page out without exiting the app. By setting this bool,
    my report now releases and prints.

    The page I'm printing has no datasources, but is built by creating TppLabels
    and programmatically placing them on the TppReport.

    Jeremy

This discussion has been closed.