Please I have Vb.net 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?
Dim Report As New CrystalDecisions.CrystalReports.Engine.ReportDocument
Report.Load(ReportPath) ', CrystalDecisions.Shared.OpenReportMethod.OpenReportByDefault)
AssignReportConnection(Report)
Report.Database.Tables("RentAssessment").SetDataSource(Table)
'View the report document
frmRentViewer.Viewer.ReportSource = Report
frmRentViewer.Viewer.RefreshReport()
frmRentViewer.Show()