Disabling Print to File
I am using D7.1 and RB 704.
I am trying to enable/disable the print to file option that is available on
the print dialog. I added the following code to the
ppReport.Template.OnLoadEnd event.
(Sender as TppReport).AllowPrintToFile := UserAllowPrintToFile
This works great when the user previews the report then prints it, but if
the user chooses to print the report without previewing, they are allowed to
print to file. Is there another event that I should be using to set this
value?
I am trying to enable/disable the print to file option that is available on
the print dialog. I added the following code to the
ppReport.Template.OnLoadEnd event.
(Sender as TppReport).AllowPrintToFile := UserAllowPrintToFile
This works great when the user previews the report then prints it, but if
the user chooses to print the report without previewing, they are allowed to
print to file. Is there another event that I should be using to set this
value?
This discussion has been closed.
Comments
That is the correct event to use. When I test that code here using the
RBuilder\Demos\EndUser\ReportExplorer\EndUser.dpr project it works
correctly.
--
Nard Moseley
Digital Metaphors Corporation
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
the print to file is still shown. I recently upgraded from D5 RB 603 to D7
RB 704.
I have a custom report explorer. I started with the RB 603 version and added
some extra stuff (security). Do you have any ideas on what I would look for?
Try performing the same test with the RBuilder\Demos\EndUser\ReportExplorer
example.
--
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com