예제 #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            bookRequestReport rpt = new bookRequestReport();

            rpt.Site = this.Site;
            return(rpt);
        }
예제 #2
0
 private void report_Click(object sender, EventArgs e)
 {
     try
     {
         reportViewer report            = new reportViewer();
         librarayManagementDataSet10 ds = new librarayManagementDataSet10();
         bookRequestReport           br = new bookRequestReport();
         adapter1.Fill(ds.member_registration);
         adapter2.Fill(ds.book_request);
         br.SetDataSource(ds);
         report.crystalReportViewer1.ReportSource = br;
         report.Show();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }