public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { ReporteClientes rpt = new ReporteClientes(); rpt.Site = this.Site; return(rpt); }
public FormReporteClientes() { InitializeComponent(); var _clientesBL = new ClientesBL(); var bindingSource = new BindingSource(); bindingSource.DataSource = _clientesBL.ObtenerClientes(); var reporte = new ReporteClientes(); reporte.SetDataSource(bindingSource); crystalReportViewer1.ReportSource = reporte; crystalReportViewer1.RefreshReport(); }