How do I clear the contents of CrystalReportViewer. I run a query which populates CrystalReportViewer correctly. If I run again without leaving the form, then the previous contents are still displayed. How do I clear then display?
A sample of my code is as follows.
Dim cryRpt As New ReportDocument
cryRpt.Load(Loads the crystal report form)
Display the results on screen now
CrystalReportViewer1.ReportSource = cryRpt
Found the problem. See my comment.
I was not clearing my datasource everytime I ran a new report.
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)