public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { ReporteVehiculo rpt = new ReporteVehiculo(); rpt.Site = this.Site; return(rpt); }
public FormReporteProductos() { InitializeComponent(); var _vehiculoBL = new VehiculoBL(); var bindingSource = new BindingSource(); bindingSource.DataSource = _vehiculoBL.ObtenerVehiculos(); var reporte = new ReporteVehiculo(); reporte.SetDataSource(bindingSource); crystalReportViewer1.ReportSource = reporte; crystalReportViewer1.RefreshReport(); }