public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { ReporteRenta rpt = new ReporteRenta(); rpt.Site = this.Site; return(rpt); }
private void crystalReportViewer1_Load(object sender, EventArgs e) { ReporteRenta reporteRenta = new ReporteRenta(); reporteRenta.SetDataSource(data); crystalReportViewer1.ReportSource = reporteRenta; crystalReportViewer1.Refresh(); }