This is a migrated thread and some comments may be shown as answers.

how to hide print button

1 Answer 223 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ismail
Top achievements
Rank 1
Ismail asked on 05 Aug 2014, 06:25 AM
Hi 

I would like to know if it is possible for me to hide the print button when a person views a report.
As i have been having issues with the browser/print functionality i would like to hide the print button and just allow them to export to CSV and PDF is this possible?

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 07 Aug 2014, 03:24 PM
Hi Ismail,

If the viewer relies on the True print functionality, there might be issues in browsers as Firefox where the PDF plugin cannot be detected due to changes in the browser as of Firefox19. Also the PDF plugin may not be installed and set correctly, which will prevent the print operation.

Depending on the used viewer there must be a property of the viewer e g. ShowPrintButton, or a control/element in the viewer's template file allowing you to show/hide the button. If you use the Silverlight ReportViewer, you can set it to use its native printing (UseNativePrinting=true).

You can also inject Javascript in the exported PDF files to force a Print Dialog to appear on opening the PDF.


I hope the above information helps you.

Regards,
Stef
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
General Discussions
Asked by
Ismail
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or