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

(re-post) How to catch the [OK] click in the print dialog event

edited July 2006 in General
Hi all,

I am using Delphi 7 and RB 7.03

How can I catch the event for the [OK] click on print dialog?

What I would like to do is this:
* The user click Print in my app.
* The report is set to DeviceType := dtScreen, so the report shows up on the
screen.
* The user looks at the report and chooses to print the report. He clicks
the printer icon
* The PrintDialog shows up
*** Now I would like to catch the click on the [OK] button

The reason for this is that everytime the user prints a report, I need to
store a copy of that exact report in the DB (InterBase using IBObjects) as a
PDF file.

If the user clicks the [Cancel] button in the print dialog, the report
should not be stored in the DB.


I hope you can help me, thank you in advance

/Claus

Comments

  • edited July 2006
    Hi Claus,

    This question has been answered in your previous post. Please allow 24
    hours for our support staff to answer your questions before re-posting.

    --
    Regards,

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

    Best Regards,

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

    I am sorry for the "re-post", the was that I corrected some information I
    found in my first post.
    So it was an "update-post" :-)

    /Claus

This discussion has been closed.