Updated on Kisan Patel
Problem:
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.
Answer:
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;