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

Capture toolbar print button event on RadPdfViewer

1 Answer 207 Views
PDFViewer
This is a migrated thread and some comments may be shown as answers.
Krzysiek
Top achievements
Rank 1
Krzysiek asked on 05 Aug 2013, 09:49 AM
This issue was solved for Web Report Viewer ( http://www.telerik.com/community/forums/reporting/telerik-reporting/capture-toolbar-print-button-event-on-web-report-viewer.aspx ), however the solution doesn't work for RadPdfViewer. Any suggestions how could it be done?

1 Answer, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 08 Aug 2013, 07:35 AM
Hi Krzysiek,

You can capture when the print button in pressed using two different approaches.

The first is to simply add a Click event handler to the print button, and handle the click in code behind. Note that with this approach you will handle the click before the actual command is executed.

The second approach is to create your own print command which inherits our PrintPdfDocumentCommand, and override the Execute and CanExecuteOverride methods.

Regards,
Alexander
Telerik

Have you tried the new visualization options in Telerik Reporting Q2 2013? You can get them from your account.

Tags
PDFViewer
Asked by
Krzysiek
Top achievements
Rank 1
Answers by
Alexander
Telerik team
Share this question
or