{"id":613,"date":"2025-10-13T11:19:41","date_gmt":"2025-10-13T14:19:41","guid":{"rendered":"https:\/\/wiki.gobiernoriocuarto.gob.ar\/?p=613"},"modified":"2026-04-13T10:33:59","modified_gmt":"2026-04-13T13:33:59","slug":"solucion-exportar-en-excel-y-pdf-con-work-with-plus","status":"publish","type":"post","link":"https:\/\/wiki.gobiernoriocuarto.gob.ar\/?p=613","title":{"rendered":"Solucion Exportar en Excel y PDF con Work With Plus"},"content":{"rendered":"<p>EXCEL:<br \/>Dentro de nuestra KB debemos buscar el procedimiento general usado para todos los exportar en excel (WWP_DownloadReport).<\/p>\n<p>Y dentro del codigo comentamos las dos lineas de codigo se\u00f1aladas:<\/p>\n<div>&amp;fileName = &amp;webSession.Get(!&#8221;WWPExportFilePath&#8221;)<\/div>\n<div>&amp;name = &amp;webSession.Get(!&#8221;WWPExportFileName&#8221;)<\/div>\n<div>If not &amp;fileName.IsEmpty() AND not &amp;name.IsEmpty()<\/div>\n<div>\/\/ &amp;webSession.Remove(!&#8221;WWPExportFilePath&#8221;)\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0&lt;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/div>\n<div>\/\/ &amp;webSession.Remove(!&#8221;WWPExportFileName&#8221;)\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &lt;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/div>\n<div>&amp;httpResponse.AddHeader(!&#8221;Content-Type&#8221;, !&#8221;application\/vnd.openxmlformats-officedocument.spreadsheetml.sheet&#8221;)<\/div>\n<div>&amp;httpResponse.AddHeader(!&#8221;X-Frame-Options&#8221;, !&#8221;deny&#8221;)<\/div>\n<div>&amp;httpResponse.AddHeader(!&#8221;Type-Options&#8221;, !&#8221;nosniff&#8221;)<\/div>\n<div>&amp;httpResponse.AddHeader(!&#8221;Content-Disposition&#8221;, !&#8221;attachment;filename=&#8221; + &amp;name)<\/div>\n<div>&amp;httpResponse.AddFile(&amp;fileName)<\/div>\n<div>Else<\/div>\n<div>&amp;httpResponse.AddString(!&#8221;Not found&#8221;)<\/div>\n<div>EndIf<\/div>\n<div>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>PDF: (Arreglo temporal para poder trabajar sobre los objetos)<br \/>Si al apretar el boton de general PDF y unicamente le abre una pantalla blanca con una cabezera en azul pero sin datos. Seguramente sea un problema de seguridad de GAM.<br \/>Si es NECESARIA la seguridad de GAM para TODOS los botones verifiquen si su cuenta esta autorizada o tiene los permisos.\u00a0<br \/>Si no es necesario debemos ir al archivo que verifica si hay autorizacion o no(SecGAMIsAuthByFunctionalityKey) y lo dejamos asi:<\/p>\n<p>\/\/If &amp;SecGAMFunctionalityKey = !'&lt;Check_Is_Authenticated&gt;&#8217;<br \/>\/\/ &amp;IsAuthorized = Not (GAMSession.IsAnonymousUser(&amp;GAMErrors))<br \/>\/\/Else<br \/>\/\/ &amp;IsAuthorized = GAMRepository.CheckPermission(&amp;SecGAMFunctionalityKey)<br \/>\/\/Endif<\/p>\n<p>&amp;IsAuthorized = True<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>EXCEL:Dentro de nuestra KB debemos buscar el procedimiento general usado para todos los exportar en excel (WWP_DownloadReport). Y dentro del codigo comentamos las dos lineas de codigo se\u00f1aladas: &amp;fileName = &amp;webSession.Get(!&#8221;WWPExportFilePath&#8221;) &amp;name = &amp;webSession.Get(!&#8221;WWPExportFileName&#8221;) If not &amp;fileName.IsEmpty() AND not &amp;name.IsEmpty() \/\/ &amp;webSession.Remove(!&#8221;WWPExportFilePath&#8221;)\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":665,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"class_list":["post-613","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-docs"],"_links":{"self":[{"href":"https:\/\/wiki.gobiernoriocuarto.gob.ar\/index.php?rest_route=\/wp\/v2\/posts\/613","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wiki.gobiernoriocuarto.gob.ar\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wiki.gobiernoriocuarto.gob.ar\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wiki.gobiernoriocuarto.gob.ar\/index.php?rest_route=\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/wiki.gobiernoriocuarto.gob.ar\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=613"}],"version-history":[{"count":1,"href":"https:\/\/wiki.gobiernoriocuarto.gob.ar\/index.php?rest_route=\/wp\/v2\/posts\/613\/revisions"}],"predecessor-version":[{"id":664,"href":"https:\/\/wiki.gobiernoriocuarto.gob.ar\/index.php?rest_route=\/wp\/v2\/posts\/613\/revisions\/664"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wiki.gobiernoriocuarto.gob.ar\/index.php?rest_route=\/wp\/v2\/media\/665"}],"wp:attachment":[{"href":"https:\/\/wiki.gobiernoriocuarto.gob.ar\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=613"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wiki.gobiernoriocuarto.gob.ar\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=613"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wiki.gobiernoriocuarto.gob.ar\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=613"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}