コード例 #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            BorrowReport rpt = new BorrowReport();

            rpt.Site = this.Site;
            return(rpt);
        }
コード例 #2
0
ファイル: MangamentReport.cs プロジェクト: GuoHM/library
        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;
        }