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

Need to Know when a when a page goes to printer.

edited March 2003 in General
I need to update my data as printed if it actually went to printer. Print
preview does not count. But if from the preview windows they selected to
print I need to know exactly what was printed.
Thanks

Comments

  • edited March 2003
    Before the report prints, you can check if the Report.PrinterDevice is nil.
    If it is non nil then the report is generating to the printer. See the main
    reports demo #124 for an example.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited March 2003
    Just a side comment... having struggled with this issue:
    Because of printer job queuing the report may still
    not actually be printed... it was just submitted to the printer.
    Something to think about :-)

    Jon

  • edited March 2003
    That is correct, RB simply generates to the print spool. Once the report has
    generated all the pages, RB does not wait around to talk to the printer to
    see if pages actually printed or not. If you want to know whether or not a
    report actually pritned to the printer, you'll have to make some Win API
    calls to get this information. There have been posts about this in our
    newsgroup. Try searching the Win API or our newsgroups via tamaracks search
    engine or google search on our newsgroups.


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.