Can I turn off Printer button in TrsClientReport preview
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
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
This discussion has been closed.
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com