Print To File Question
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
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
This discussion has been closed.
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
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