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