public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { bookReturnReport rpt = new bookReturnReport(); rpt.Site = this.Site; return(rpt); }
private void report_Click(object sender, EventArgs e) { try { reportViewer report = new reportViewer(); librarayManagementDataSet9 ds = new librarayManagementDataSet9(); bookReturnReport br = new bookReturnReport(); adapter1.Fill(ds.member_registration); adapter3.Fill(ds.book_issue); br.SetDataSource(ds); report.crystalReportViewer1.ReportSource = br; report.Show(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }