<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic When exporting to a text file how do I let the user select their own save path? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/When-exporting-to-a-text-file-how-do-I-let-the-user-select-their/m-p/184095#M49121</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Peter Rieper wrote:http://community.qlik.com/media/p/79850.aspx, which uses File-Dialogue&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Be warned that the File Dialogue in this app uses "UserAccounts.CommonDialog", which is only available in Win XP. If you are using any other flavor of Windows (Vista, 2x, 7) the File Dialog will not work.&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 12 Dec 2009 06:42:26 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2009-12-12T06:42:26Z</dc:date>
    <item>
      <title>When exporting to a text file how do I let the user select their own save path?</title>
      <link>https://community.qlik.com/t5/QlikView/When-exporting-to-a-text-file-how-do-I-let-the-user-select-their/m-p/184094#M49120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;The code below Exports table content to a text file. Does anyone know how I do the following:&lt;/P&gt;&lt;P&gt;a) default the save path to the current user's desktop?&lt;/P&gt;&lt;P&gt;b) pop a file dialog box for the user to choose the save path?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;set obj = ActiveDocument.GetSheetObject("CH804")&lt;BR /&gt;&lt;BR /&gt;obj.ExportEx "C:\Users\John\Desktop\test.txt", 1&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2009 11:42:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/When-exporting-to-a-text-file-how-do-I-let-the-user-select-their/m-p/184094#M49120</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-12-11T11:42:04Z</dc:date>
    </item>
    <item>
      <title>When exporting to a text file how do I let the user select their own save path?</title>
      <link>https://community.qlik.com/t5/QlikView/When-exporting-to-a-text-file-how-do-I-let-the-user-select-their/m-p/184095#M49121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Peter Rieper wrote:http://community.qlik.com/media/p/79850.aspx, which uses File-Dialogue&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Be warned that the File Dialogue in this app uses "UserAccounts.CommonDialog", which is only available in Win XP. If you are using any other flavor of Windows (Vista, 2x, 7) the File Dialog will not work.&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Dec 2009 06:42:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/When-exporting-to-a-text-file-how-do-I-let-the-user-select-their/m-p/184095#M49121</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2009-12-12T06:42:26Z</dc:date>
    </item>
    <item>
      <title>When exporting to a text file how do I let the user select their own save path?</title>
      <link>https://community.qlik.com/t5/QlikView/When-exporting-to-a-text-file-how-do-I-let-the-user-select-their/m-p/184096#M49122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Rob: Good point - Thanks.&lt;/P&gt;&lt;P&gt;Is there better way rather than using then an inputbox, which might work on different platforms?&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Dec 2009 16:59:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/When-exporting-to-a-text-file-how-do-I-let-the-user-select-their/m-p/184096#M49122</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2009-12-12T16:59:11Z</dc:date>
    </item>
    <item>
      <title>When exporting to a text file how do I let the user select their own save path?</title>
      <link>https://community.qlik.com/t5/QlikView/When-exporting-to-a-text-file-how-do-I-let-the-user-select-their/m-p/184097#M49123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob and Peter,&lt;/P&gt;&lt;P&gt;thank you for comments so far. Leveraging off Peter's last comment, an alternative (for me) would be to save the output to the user's desktop.&lt;/P&gt;&lt;P&gt;So, if there was an environment variable that tells me the desktop path this would suffice in place of the file dialog. It might still come down to the same problem mentioned by Rob, this being the different engine used from XP to the newer builds of windows.&lt;/P&gt;&lt;P&gt;This has given me something else to research on the net.&lt;/P&gt;&lt;P&gt;thanks, and be sure to comment here if you know that all important code snippet that will reveal the user's desktop path. &lt;IMG alt="Smile" src="http://community.qlik.com/emoticons/emotion-1.gif" /&gt;&lt;/P&gt;&lt;P&gt;thank you,&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Dec 2009 07:11:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/When-exporting-to-a-text-file-how-do-I-let-the-user-select-their/m-p/184097#M49123</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-12-13T07:11:48Z</dc:date>
    </item>
    <item>
      <title>When exporting to a text file how do I let the user select their own save path?</title>
      <link>https://community.qlik.com/t5/QlikView/When-exporting-to-a-text-file-how-do-I-let-the-user-select-their/m-p/184098#M49124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not that expert, but seems that user's desktop is available under C:\Documents and Settings\NT-Name\Desktop, thus you only need to construct a string like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;LET sPath = 'C:\Documents and Settings\' &amp;amp; SUBFIELD(OSUSER(), '\', 2) &amp;amp; '\Desktop';&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;HTH&lt;BR /&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Dec 2009 04:27:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/When-exporting-to-a-text-file-how-do-I-let-the-user-select-their/m-p/184098#M49124</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2009-12-14T04:27:03Z</dc:date>
    </item>
    <item>
      <title>When exporting to a text file how do I let the user select their own save path?</title>
      <link>https://community.qlik.com/t5/QlikView/When-exporting-to-a-text-file-how-do-I-let-the-user-select-their/m-p/184099#M49125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Peter Rieper wrote:LET sPath = 'C:\Documents and Settings\' &amp;amp; SUBFIELD(OSUSER(), '\', 2) &amp;amp; '\Desktop';&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;In Vista it's "users\" instead of "Documents and Settings".&lt;/P&gt;&lt;P&gt;I think the environment variable that is common across Windows versions is "USERPROFILE". You can get the env variable in the script with something like: http://windowsitpro.com/article/articleid/84803/jsi-tip-9956-how-do-i-use-an-environment-variable-in-vbscript.html&lt;/P&gt;&lt;P&gt;There are also a number of hacks to be found on the web where people use a file chooser dialog from MS Office, IE or Shell. Google and you'll find them. Attached is a sample that tries to use UserAccounts.CommonDialog and then falls back to Excel if CommonDialog is not found.&lt;/P&gt;&lt;P&gt;In CommonDialog, you can use the env variable %USRPROFILE%. I'm not sure how to do that in the Excel dialog. Maybe oXL.ChDir or oXL.SetCurrentDirectory would accept the %% syntax. I can't try it because I don't have Excel on this machine.&lt;/P&gt;&lt;P&gt;Seems worth asking if you've considered the simpler (for you) solution of having the user right-click the chart and use the Export option?&lt;/P&gt;&lt;P&gt;Have fun and let us know if you develop the killer solution.&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Dec 2009 15:00:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/When-exporting-to-a-text-file-how-do-I-let-the-user-select-their/m-p/184099#M49125</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2009-12-14T15:00:45Z</dc:date>
    </item>
    <item>
      <title>AW:Re: When exporting to a text file how do I let the user select their own save path?</title>
      <link>https://community.qlik.com/t5/QlikView/When-exporting-to-a-text-file-how-do-I-let-the-user-select-their/m-p/184100#M49126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanx Rob, I will use this for my QVDViewer on Vista+.&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2009 05:38:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/When-exporting-to-a-text-file-how-do-I-let-the-user-select-their/m-p/184100#M49126</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2009-12-17T05:38:17Z</dc:date>
    </item>
    <item>
      <title>AW:Re: When exporting to a text file how do I let the user select their own save path?</title>
      <link>https://community.qlik.com/t5/QlikView/When-exporting-to-a-text-file-how-do-I-let-the-user-select-their/m-p/184101#M49127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Theses solutions are interesting, but this is how to select a file, isn'it ?&lt;BR /&gt;Is there any way to select a folder ?&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jul 2010 19:27:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/When-exporting-to-a-text-file-how-do-I-let-the-user-select-their/m-p/184101#M49127</guid>
      <dc:creator />
      <dc:date>2010-07-05T19:27:48Z</dc:date>
    </item>
  </channel>
</rss>

