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

Print To File Question

edited December 2009 in General
D7, RB10.07
How can I disable the Print to File option or at lease the option to Print
to File - pdf? I am using gnostice product from a seperate button and would
like to disable options to print to pdf and archive file.

I tried setting ppReport1.AllowPrintToFile to False but that has no effect.

Thanks

Comments

  • edited December 2009
    Hi Bob,

    Setting the Report.AllowPrintToFile property to False will remove the "Print
    To File" section from the Print Dialog. Since this property is not having
    any effect I'm assuming you are loading templates. In this case, you will
    need to use a template event such as the OnLoadEnd to set the property
    (essentially overriding what is saved down with the template definition).

    http://www.digital-metaphors.com/rbWiki/Design/Templates/Using_Template_Events

    You can remove individual file devices from the list by unregistering them.

    uses
    ppDevice, ppPDFDevice;

    ppUnRegisterDevice(TppPDFDevice);

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited December 2009
    > How can I disable the Print to File option or at lease the option to Print

    in addition to Nico, if you are loading from a template, simply set the
    AllowPrintToFile property to false after loading the template.

    Ed Dressel
    Team DM
  • edited December 2009
    Great. Thanks to both of you.

This discussion has been closed.