public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { ReportesProveedores rpt = new ReportesProveedores(); rpt.Site = this.Site; return(rpt); }
public FormReporteProveedores() { InitializeComponent(); var _proveedoresBL = new ProveedoresBL(); var bindingsource = new BindingSource(); bindingsource.DataSource = _proveedoresBL.ObtenerProveedores(); var reporte = new ReportesProveedores(); reporte.SetDataSource(bindingsource); crystalReportViewer1.ReportSource = reporte; crystalReportViewer1.RefreshReport(); }