示例#1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            CR_Entradas rpt = new CR_Entradas();

            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_Entradas rpt = new CR_Entradas();

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