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

            rpt.Site = this.Site;
            return(rpt);
        }
Exemple #2
0
        private void btnAceptar_Click(object sender, EventArgs e)
        {
            if (txtFecha.Text.Replace(" ", "").Length < 10)
            {
                return;
            }

            DataTable legajos = _TraerLegajos();

            VistaPrevia frm = new VistaPrevia();

            ReportDocument rpt = new ReporteListadoLegajosAActualizarAFecha();

            rpt.SetDataSource(legajos);
            rpt.SetParameterValue("Fecha", txtFecha.Text);

            frm.CargarReporte(rpt);
            frm.Show(this);
        }