protected void btn_img_exporttoexcel_Click(object sender, ImageClickEventArgs e)
 {
     try
     {
         gv_quiebreToExcel.Visible = true;
         GridViewExportUtil.ExportToExcelMethodTwo("Reporte_Quiebre", this.gv_quiebreToExcel);
     }
     catch (Exception ex)
     {
         ex.Message.ToString();
     }
 }
 protected void btn_img_exporttoexcel_Click(object sender, ImageClickEventArgs e)
 {
     try
     {
         cargarGrilla_Competencias_toExcel();
         gv_competenciaToExcel.Visible = true;
         GridViewExportUtil.ExportToExcelMethodTwo("Reporte_Competencia", this.gv_competenciaToExcel);
     }
     catch (Exception ex)
     {
         ex.Message.ToString();
     }
 }
Ejemplo n.º 3
0
 protected void btn_img_exporttoexcel_Click(object sender, ImageClickEventArgs e)
 {
     try
     {
         //cargarGrilla_Impulso_to_Excel();
         gv_impulsoToExcel.Visible = true;
         GridViewExportUtil.ExportToExcelMethodTwo("Reporte_Stock", this.gv_impulsoToExcel);
     }
     catch (Exception ex)
     {
         ex.Message.ToString();
     }
 }
 protected void btn_img_exporttoexcel_Click(object sender, ImageClickEventArgs e)
 {
     try
     {
         //Modificado Por: Pablo Salas. Fecha:05/09/2011. Resumen: Se inhabilita el metodo cargarGrilla_Stock_Ingresostoexcel() para cargar todos los registros indiferente si son validados o invalidos.
         //cargarGrilla_Stock_Ingresostoexcel();
         //cargarGrilla_Stock_Ingresos();
         GridView1.Visible = true;
         //gv_stockToExcel.Visible = true;
         //GridViewExportUtil.ExportToExcelMethodTwo("Reporte_Stock", this.gv_stockToExcel);
         GridViewExportUtil.ExportToExcelMethodTwo("Reporte Stock-Ingresos", this.GridView1);
     }
     catch (Exception ex)
     {
         ex.Message.ToString();
     }
 }