Exemplo n.º 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            ReporteVehiculos rpt = new ReporteVehiculos();

            rpt.Site = this.Site;
            return(rpt);
        }
Exemplo n.º 2
0
        public FormReporteVehiculos()
        {
            InitializeComponent();

            List <TextBox> BuscarTlist = new List <TextBox>();
            List <string>  BuscarSlist = new List <String>();

            BuscarTlist.Add(txtBuscarVehiculo);
            BuscarSlist.Add("Filtrar por modelo de vehículo");
            SetCueBanner(ref BuscarTlist, BuscarSlist);

            _VehiculosBL             = new VehiculosBL();
            bindingsource            = new BindingSource();
            bindingsource.DataSource = _VehiculosBL.ObtenerVehiculos();

            reporte = new ReporteVehiculos();
            reporte.SetDataSource(bindingsource);

            crystalReportViewer1.ReportSource = reporte;
            crystalReportViewer1.RefreshReport();
        }