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

Can I turn off Printer button in TrsClientReport preview

edited June 2007 in General
Hi

D6.02 RB10.4 W2K

Under certain circumstances I would like the Print button turned off which
sits to the left of the toolbar when previewing a report to prevent the user
printing. The main aim of this is to ensure that only email is used.

Is there anyway to turn this button off either by making it invisible or
disabling it. If not can I use an event to prevent it from showing the Print
Dialog.

regards
Andrew Wood

Comments

  • edited June 2007
    Hi Andrew,

    You can access each button in the preview form using the built-in pass thru
    properties of the TppPrintPreview class. Something like the following...

    uses
    ppPrvDlg;

    TppPrintPreview(rsClientReport1.PreviewForm).PrintButton.Enabled := False;

    --
    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.