Пример #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            BorrowReport rpt = new BorrowReport();

            rpt.Site = this.Site;
            return(rpt);
        }
Пример #2
0
        private void crystalReportViewer1_Load(object sender, EventArgs e)
        {
            LibDataSet context = new LibDataSet();

            LibDataSetTableAdapters.BooksTableAdapter  b = new LibDataSetTableAdapters.BooksTableAdapter();
            LibDataSetTableAdapters.BorrowTableAdapter c = new LibDataSetTableAdapters.BorrowTableAdapter();
            b.Fill(context.Books);
            c.Fill(context.Borrow);

            BorrowReport cr1 = new BorrowReport();

            cr1.SetDataSource(context);
            crystalReportViewer1.ReportSource = cr1;
        }