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

            rpt.Site = this.Site;
            return(rpt);
        }
        public FormReporteDonantes()
        {
            InitializeComponent();

            var _donantesBL  = new DonantesBL();
            var bidingSource = new BindingSource();

            bidingSource.DataSource = _donantesBL.ObtenerDonantes();

            var reporte = new ReporteDonantes();

            reporte.SetDataSource(bidingSource);

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