예제 #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            ReporteVehiculo rpt = new ReporteVehiculo();

            rpt.Site = this.Site;
            return(rpt);
        }
예제 #2
0
        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();
        }