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

Printing Control

edited March 2006 in General
I posted a while back about methods to prevent the hiding or disabling the
print button on the preview screen in both the report and the designer. In
response someone posted a reply directing me to a method whereby I create my
own preview plugin and disable the print button in that.

This method worked fin except for one thing: The button is disabled on all
the reports. What I need is to disable the button at run time using a
combination of which user is logged in and which report they are trying to
run.

The reason for this is that some reports contain restricted information
(SSN's etc) and printing needs to be restricted to a certain group of
trusted users. The others contain generalised information which should be
printable by a lager group of users.

All users should be able to preview the reports.

Is there a way to do this? In the example I was sent the previer was
registered in the initilisation section. Can I register it at run time when
the report is created?

Or is there another way I can do this?

S

Comments

  • edited March 2006
    Hi,

    Since you have already created a custom preview plugin, you now have
    complete control over how the preview will be displayed. You could either
    add the logic into your custom previewer to show or hide the print button as
    you need, or you could simply manually register the custom preview whenever
    you wish to hide the button. When you would like to show the button, just
    keep using the native previewer.

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