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

            rpt.Site = this.Site;
            return(rpt);
        }
Ejemplo n.º 2
0
        private void crystalReportViewer1_Load(object sender, EventArgs e)
        {
            CrystalReportLoanTrans  cr   = new CrystalReportLoanTrans();
            DataSetForCrystalReport ds   = new DataSetForCrystalReport();
            LoanTransTableAdapter   lt   = new LoanTransTableAdapter();
            MembersTableAdapter     memb = new MembersTableAdapter();

            lt.Fill(ds.LoanTrans);
            memb.Fill(ds.Members);
            cr.SetDataSource(ds);
            crystalReportViewer1.ReportSource = cr;
        }