Click here to Skip to main content
15,745,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Please I have 2019 and crystal report and I use the following codes to show the report without any problem. Now, I want to know when the printer button is clicked so that I can set a condition. So is there any event of the Report Viewer that I can detect the print button when clicked?

What I have tried:

Dim Report As New CrystalDecisions.CrystalReports.Engine.ReportDocument
Report.Load(ReportPath) ', CrystalDecisions.Shared.OpenReportMethod.OpenReportByDefault)
'View the report document
frmRentViewer.Viewer.ReportSource = Report
Updated 3-Mar-23 6:55am

1 solution

Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900