public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { ReporteClientes rpt = new ReporteClientes(); rpt.Site = this.Site; return(rpt); }
public ReportesClientes() { InitializeComponent(); var _clienteBL = new ClientesBL(); var bindingsource = new BindingSource(); bindingsource.DataSource = _clienteBL.ObtenerClientes(); var reporte = new ReporteClientes(); reporte.SetDataSource(bindingsource); crystalReportViewer1.ReportSource = reporte; crystalReportViewer1.Refresh(); }