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

How to prevent printing?

edited February 2006 in General
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

Comments

  • edited February 2006
    Would the following help?
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    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

  • edited February 2006
    That works just fine. However is there a way to do it on a per report basis?

This discussion has been closed.