{"id":24398,"date":"2016-12-09T10:46:12","date_gmt":"2016-12-09T09:46:12","guid":{"rendered":"http:\/\/help.qualiware.it\/qw-help\/?p=24398"},"modified":"2019-09-02T10:40:28","modified_gmt":"2019-09-02T08:40:28","slug":"download-di-un-file-da-un-pulsante","status":"publish","type":"post","link":"https:\/\/help.qualiware.it\/qw-help\/download-di-un-file-da-un-pulsante\/","title":{"rendered":"Download di un file da un pulsante"},"content":{"rendered":"<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\">' Il seguente frammento consente lo scaricamento di un file inserito nel percorso \"rpt\\custom\"\r\n\r\nDim nome_file as string=form.Session(\"QWSess\").Q95_NOME_DIR_DOCUM+\"\\rpt\\custom\\NOME_FILE.XLSX\"\r\nDim url as string= CreateDownloadRequest(form.page, nome_file)\r\n\r\n' Se si desidera attribuire un nome specifico al file che verr\u00e0 scaricato nel browser, si pu\u00f2 inserire nel quarto parametro\r\n' Altrimenti verr\u00e0 preso il nome del file il cui percorso \u00e8 specificato nella variabile nome_file\r\n' Dim url as string= CreateDownloadRequest(form.page, nome_file, true, \"FOGLIO.XLSX\")<\/pre>\n<pre>BrowserOpen(form,url) ' Apre la URL di download nel browser<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>&#8216; Il seguente frammento consente lo scaricamento di un file inserito nel percorso &#8220;rpt\\custom&#8221; Dim nome_file as string=form.Session(&#8220;QWSess&#8221;).Q95_NOME_DIR_DOCUM+&#8221;\\rpt\\custom\\NOME_FILE.XLSX&#8221; Dim url as string= CreateDownloadRequest(form.page, nome_file) &#8216; Se si desidera attribuire un nome specifico al file che verr\u00e0 scaricato nel browser, si pu\u00f2 inserire nel quarto parametro &#8216; Altrimenti verr\u00e0 preso il nome del file il cui&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"ngg_post_thumbnail":0,"footnotes":""},"categories":[65],"tags":[71],"acf":[],"_links":{"self":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/posts\/24398"}],"collection":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/comments?post=24398"}],"version-history":[{"count":0,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/posts\/24398\/revisions"}],"wp:attachment":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/media?parent=24398"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/categories?post=24398"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/tags?post=24398"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}