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

            rpt.Site = this.Site;
            return(rpt);
        }
Example #2
0
        private void frmReportPopularBook_Load(object sender, EventArgs e)
        {
            DataSetBookInfo ds = new DataSetBookInfo();

            DataSetBookInfoTableAdapters.PopularbookTableAdapter ta = new DataSetBookInfoTableAdapters.PopularbookTableAdapter();
            ta.Fill(ds.Popularbook);
            CrystalReportPopularbook cr = new CrystalReportPopularbook();

            cr.SetDataSource(ds);
            crystalReportViewer1.ReportSource = cr;
            //.popular6TableAdapter ta = new DataSetpopularbookTableAdapters.popular6TableAdapter();
            //ta.Fill(ds.popular6);



            //CrystalReportpopularbook cr = new CrystalReportpopularbook();
            ////CrystalReportpopularbook1 cr = new CrystalReportpopularbook1();
            //cr.SetDataSource(ds);
            //crystalReportViewer1.ReportSource = cr;
        }