예제 #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            CR_Renta1 rpt = new CR_Renta1();

            rpt.Site = this.Site;
            return(rpt);
        }
예제 #2
0
        private void crystalReportViewer1_Load(object sender, EventArgs e)
        {
            VideoJuegosBL db = new VideoJuegosBL();
            BindingSource bs = new BindingSource();

            bs.DataSource = db.ObtenerListadoRenta();

            CR_Renta1 rpt = new CR_Renta1();

            rpt.SetDataSource(bs);
            crystalReportViewer1.ReportSource = rpt;
            crystalReportViewer1.RefreshReport();
        }