How to prevent printing?
I need to be able to prevent users from sending a report to the printer
(both from the report Component and the TppDesigner comoonent as well). I
set the device to screen but I need to either
a) Hide the print button when the report prints to the screen
or
b) detect when the click the button and show a message that says they can't
print and prevent the print dialog from being shown.
Anyone know how?
S
(both from the report Component and the TppDesigner comoonent as well). I
set the device to screen but I need to either
a) Hide the print button when the report prints to the screen
or
b) detect when the click the button and show a message that says they can't
print and prevent the print dialog from being shown.
Anyone know how?
S
This discussion has been closed.
Comments
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To disable a button in the Report Preview form, you need to create a
descendant class to ppPreview and change the PrintButton property's
settings. Follow the link below for an example of how to do this.
http://www.digital-metaphors.com/tips/PreviewPrintBtnDisabled.zip
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
It was posted by Nico some time ago and worked fine for me
with RBldr v7
Jon