Updated on Kisan Patel
How do clear a report from Crystal Report Viewer in C# WPF ?
The WPF viewer does not have any exposed APIs that would clear the viewer.
First create a blank.rpt report with nothing in it, no database connection.
Now use the following code:
ReportDocument report = new ReportDocument(); report.Load("../../Reports/blank.rpt"); crystalReportsViewer.ViewerCore.ReportSource = report;