Beispiel #1
0
        protected void LB_Exportar_Click(object sender, EventArgs e)
        {
            Table TablaAExcel = new Table();

            tablaExpor        = new ExporTabla(idCOnvocatoria);
            tablaExpor._Tabla = (Table)Session["P_TablaEval"];

            tablaExpor.BorrarControl();

            TablaAExcel = tablaExpor._TablaAExcel1;

            exportar(TablaAExcel);
        }
Beispiel #2
0
        /// <summary>
        /// Handles the Click event of the LB_Exportar control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
        protected void LB_Exportar_Click(object sender, EventArgs e)
        {
            var         indicefila = ((GridViewRow)((Control)sender).NamingContainer).RowIndex;
            GridViewRow filaGrilla = GV_Actas.Rows[indicefila];

            Int64 idConvocatoria = Int64.Parse(GV_Actas.DataKeys[filaGrilla.RowIndex].Value.ToString());

            ExporTabla tablaExpor = new ExporTabla("" + idConvocatoria);

            tablaExpor.llenarData();
            tablaExpor.crearTabla();

            Table TablaAExcel = new Table();

            tablaExpor.BorrarControl();

            TablaAExcel = tablaExpor._TablaAExcel1;

            exportar(TablaAExcel, "" + idConvocatoria);
        }
Beispiel #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                if (String.IsNullOrEmpty(HttpContext.Current.Session["EvalidConvocatoria"].ToString()))
                {
                    Response.Redirect("ActasReporteFinalAcreditacion.aspx");
                }
                else
                {
                    idCOnvocatoria = HttpContext.Current.Session["EvalidConvocatoria"].ToString();
                }
            }
            catch (Exception)
            {
                Response.Redirect("ActasReporteFinalAcreditacion.aspx");
            }

            puedeTransmitirse();

            if (!IsPostBack)
            {
                tablaExpor = new ExporTabla(idCOnvocatoria);

                tablaExpor.llenarData();
                tablaExpor.crearTabla();
                //CrearEvento();
                HttpContext.Current.Session["P_TablaEval"] = tablaExpor._Tabla;
            }

            try
            {
                P_tabla.Controls.Add((Table)Session["P_TablaEval"]);
                tablaExpor        = new ExporTabla(idCOnvocatoria);
                tablaExpor._Tabla = (Table)Session["P_TablaEval"];
                CrearEvento();
                P_tabla.DataBind();
            }
            catch (Exception) { }
        }