CrystalReport3 cr = new CrystalReport3();
ReportDocument cryRpt = new ReportDocument();
cr.Load(@"CrystalReport3.rpt");
cr.Database.Tables["ItemDetails"].SetDataSource(dt1);
crystalReportsViewer1.ViewerCore.Visibility = Visibility.Visible;
crystalReportsViewer1.ViewerCore.ReportSource = cr;
cryRpt = (ReportDocument)crystalReportsViewer1.ViewerCore.ReportSource;