<?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 Macro Object Export. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-Object-Export/m-p/369926#M137547</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah and with no slashes just trying to drop it in the root dir but same error.&amp;nbsp; I have to hard code the full path from the drive letter forward.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Mar 2012 21:17:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-03-26T21:17:46Z</dc:date>
    <item>
      <title>Macro Object Export.</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-Object-Export/m-p/369924#M137545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone know if we can use relative paths for theobject export.&amp;nbsp; Right now I am using obj.Export &lt;/P&gt;&lt;P&gt; "Z:\Documents\CheggSVN\EDW\reporting\trunk\qlikview\"&amp;amp;object_id&amp;amp;".csv","," &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But anything I change it to like obj.Export ""&amp;amp;object_id&amp;amp;".csv",","&amp;nbsp; or obj.Export "../qlikview/"&amp;amp;object_id&amp;amp;".csv",","&amp;nbsp; all give me an error cannot open file for writing.&amp;nbsp; Even if it is in the exact location as the hard coded path.&amp;nbsp; I just want to make this relative so we can deploy it to different environemnts and know the structure will be there.&amp;nbsp; This full absolute path is brittle.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2012 17:17:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-Object-Export/m-p/369924#M137545</guid>
      <dc:creator />
      <dc:date>2012-03-26T17:17:08Z</dc:date>
    </item>
    <item>
      <title>Macro Object Export.</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-Object-Export/m-p/369925#M137546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have you tried with backslashes?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2012 21:04:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-Object-Export/m-p/369925#M137546</guid>
      <dc:creator />
      <dc:date>2012-03-26T21:04:43Z</dc:date>
    </item>
    <item>
      <title>Macro Object Export.</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-Object-Export/m-p/369926#M137547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah and with no slashes just trying to drop it in the root dir but same error.&amp;nbsp; I have to hard code the full path from the drive letter forward.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2012 21:17:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-Object-Export/m-p/369926#M137547</guid>
      <dc:creator />
      <dc:date>2012-03-26T21:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Object Export.</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-Object-Export/m-p/369927#M137548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I usually set up some global variables along the lines of the following.&amp;nbsp; The key is to set the current working directory using .MyWorkingDirectory, then navigate up the filepath using the InStrRev function.&amp;nbsp; Test this sample macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub CurrentDir&lt;BR /&gt;Dim docProp&lt;BR /&gt;set docProp = ActiveDocument.GetProperties&lt;/P&gt;&lt;P&gt;Dim tmpFile&amp;nbsp; 'used to create relative filepaths&lt;BR /&gt;tmpFile = docProp.MyWorkingDirectory&lt;BR /&gt;msgbox tmpFile&lt;/P&gt;&lt;P&gt;Dim vSpl&amp;nbsp; 'location of final backslash char&lt;BR /&gt;vSpl = InStrRev(tmpFile,"\")&lt;BR /&gt;msgbox vSpl&lt;/P&gt;&lt;P&gt;tmpFile = Left(tmpFile,vSpl) &amp;amp; "QVOutputData\example.txt"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'file will be written one folder up, then two down&lt;BR /&gt;msgbox tmpFile&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flipside&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2012 21:33:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-Object-Export/m-p/369927#M137548</guid>
      <dc:creator>flipside</dc:creator>
      <dc:date>2012-03-26T21:33:25Z</dc:date>
    </item>
    <item>
      <title>Macro Object Export.</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-Object-Export/m-p/369928#M137549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;wow, that was much harder than it ever needed to be for a relative path &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&amp;nbsp;&amp;nbsp; But it worked.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2012 22:07:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-Object-Export/m-p/369928#M137549</guid>
      <dc:creator />
      <dc:date>2012-03-26T22:07:28Z</dc:date>
    </item>
  </channel>
</rss>

