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

Get Response of print dialog box

1 Answer 125 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jonathan Melendez
Top achievements
Rank 1
Jonathan Melendez asked on 28 Aug 2009, 01:59 PM
I am using the Telerik reportViewer to generate some reports I also use the print function that comes with the viewer.  I just want to know if there is a way to get the response of the print dialog that pops when the print button is pressed.  I need to know if the user pressed the 'ok' button or the 'cancel' button in order to execute some code depending on the user selection.

Thanks for the response

Jonathan Melendez

1 Answer, 1 is accepted

Sort by
0
Svetoslav
Telerik team
answered on 31 Aug 2009, 02:15 PM
Hello Jonathan Melendez,

I guess you are asking about the ASP.NET Report Viewer. If this is the case, please have in mind that we depend on Adobe Acrobat/PDF for the browser printing and I'm not sure whether you can intercept into the plugin.

What you can do here is to take the printing off the ReportViewer. This way you can ask the user if s/he wants to print the report and then proceed accordingly. For more information on how you can control the Report Viewer please see the Client-Side API.

 
Regards,
Svetoslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
Jonathan Melendez
Top achievements
Rank 1
Answers by
Svetoslav
Telerik team
Share this question
or