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

            rpt.Site = this.Site;
            return(rpt);
        }
예제 #2
0
        public ReportesClientes()
        {
            InitializeComponent();
            var _clienteBL    = new ClientesBL();
            var bindingsource = new BindingSource();

            bindingsource.DataSource = _clienteBL.ObtenerClientes();

            var reporte = new ReporteClientes();

            reporte.SetDataSource(bindingsource);

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