Is it possible to catch the print button click event with CrystalReportViewer in Winforms

Hi,
I have a CrystalReport viewer set in a winForms based application.
We would like to track the number of times a report gets printed.

For this we need to capture the click of the print button on the toolbar of the reportviewer to verify that the print has actually occured, Is this possible at all?

If yes, how can this be done. Any sample code would be great

Regards,
Amit Acharya
AmitBAcharyaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mlmccCommented:
Which viewer?  What code are you using to display the report?

On some viewers it is possible to since there is a CLICK event for the print button.  If that doesn't exist for your viewer then you will need to create your own print button and include the code you need to count the prints.

mlmcc
0
AmitBAcharyaAuthor Commented:
I am using the standard Crystal.NET ReportViewer in CR9.1 that comes along with VS.NET 2003
0
dylanyeeCommented:
AmitBAcharya, if you are using .net and using its CrystalReportViewer, you have to override the CrystalReportViewer class, and override the PrintReport() function. Please let me know if you need further help.

dylan
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Crystal Reports

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.