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

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

            DataSetTableAdapters.BookBorrowAnalysisTableAdapter br = new DataSetTableAdapters.BookBorrowAnalysisTableAdapter();
            br.Fill(ds.BookBorrowAnalysis);

            CR_BookBorrowTrend brt = new CR_BookBorrowTrend();

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