Example #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            ReportesCliente rpt = new ReportesCliente();

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