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

Trigger an event when Print button is clicked

edited August 2008 in General
Hi,

Is there anyway that I can trigger an event when the Print Button is
clicked?

Thanks

Patrick

Comments

  • edited August 2008
    Hi Patrick,

    Yes, there are passthru properties available on the preview form that give
    you access to each button in the main toolbar of the preview window.

    uses
    ppPrvDlg;

    TppPrintPreview(ppReport1.PreviewForm).PrintButton.OnClick :=
    PrintButtonClickEvent;

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.