Beispiel #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            CR_Booklisting rpt = new CR_Booklisting();

            rpt.Site = this.Site;
            return(rpt);
        }
        private void frmListofBook_Load(object sender, EventArgs e)
        {
            DataSet ds = new DataSet();

            DataSetTableAdapters.BookListTableAdapter bra = new DataSetTableAdapters.BookListTableAdapter();
            bra.Fill(ds.BookList);
            CR_Booklisting br = new CR_Booklisting();

            br.SetDataSource(ds);
            crystalReportViewer1.ReportSource = br;
        }