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

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

            var _planillaBL   = new PlanillaBL();
            var bindingSource = new BindingSource();

            bindingSource.DataSource = _planillaBL.ObtenerPlanillas();

            var reporte = new ReportePlanilla();

            reporte.SetDataSource(bindingSource);

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