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