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