Just spotted the issue. You're doing wrong order. Move the below line to last(should be ending line of
try
block.
crystalReportViewer1.ReportSource = report;
You should assign the
Reportsource
to
crystalReportViewer
after adding the subreport things.
EDIT
--------------
Quote:
yes sir i check but error is display like "Load report failed." after this line error jumps on catch block the line is:----- subreport.Load("CrystalReport_Dept.rpt");
Check this Tip/Trick
Crystal Reports: Fix for "Load report failed" error.[
^]