We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now


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

AmitBAcharya asked
Medium Priority
Last Modified: 2008-01-09
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

Amit Acharya
Watch Question

Mike McCrackenSenior Consultant
Most Valuable Expert 2011
Top Expert 2013

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.



I am using the standard Crystal.NET ReportViewer in CR9.1 that comes along with VS.NET 2003
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.


Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.