/// <summary> /// Exportar a excel /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void ibExportToExcel_Click(object sender, ImageClickEventArgs e) { //gvReturns.AllowPaging = false; //GridViewExportUtil.removeFormats(ref gvReturns); //gvReturns.DataBind(); //string nameFile = "OperacionesGratuitas"; //// pass the grid that for exporting ... //GridViewExportUtil.Export(nameFile + ".xls", gvReturns); DataTable dt = (DataTable)Session[_nameSessionData]; GridViewExportUtil.ExportarExcel(dt, "", "2,4", "OPeracionesGratuitas"); }