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

Posted on 2006-03-21
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
Question by:AmitBAcharya
LVL 101

Expert Comment

ID: 16264888
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.


Author Comment

ID: 16265675
I am using the standard Crystal.NET ReportViewer in CR9.1 that comes along with VS.NET 2003

Accepted Solution

dylanyee earned 2000 total points
ID: 16265749
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.


Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses
Course of the Month13 days, 12 hours left to enroll

755 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question