public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            bookReport rpt = new bookReport();

            rpt.Site = this.Site;
            return(rpt);
        }
 private void report_Click(object sender, EventArgs e)
 {
     try
     {
         reportViewer report           = new reportViewer();
         librarayManagementDataSet8 ds = new librarayManagementDataSet8();
         bookReport br = new bookReport();
         adapter1.Fill(ds.book_registration);
         br.SetDataSource(ds);
         report.crystalReportViewer1.ReportSource = br;
         report.Show();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }