question

Benniit-3632 avatar image
0 Votes"
Benniit-3632 asked

How to detect crystal report print button when clicked

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()


vs-general
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers