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

            rpt.Site = this.Site;
            return(rpt);
        }
Exemplo n.º 2
0
        private void frmBorrowReceipt_Load(object sender, EventArgs e)
        {
            DataSet ds = new DataSet();

            DataSetTableAdapters.BorrowReceiptTableAdapter bra = new DataSetTableAdapters.BorrowReceiptTableAdapter();
            bra.Fill(ds.BorrowReceipt);
            CR_BorrowReceipt br = new CR_BorrowReceipt();

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