<?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 Pulling the report ID with a macro without using the backend in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pulling-the-report-ID-with-a-macro-without-using-the-backend/m-p/207875#M63477</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you this was exactly what I was looking for to accomplish my task as coded below. Noticed that the Document reports and User reports are distinguished by a prefix (for example: Document\RP01) so had to strip it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub reports&lt;BR /&gt;tempFolder = "U:\Transfer\"&lt;BR /&gt;set reps = ActiveDocument.GetDocReports&lt;BR /&gt;for i = 0 to reps.Count-1&lt;BR /&gt; set rep = reps.Item(i)&lt;BR /&gt;&lt;BR /&gt; reportID = rep.Id&lt;BR /&gt; if InStr(reportID, "\") &amp;gt; 0 then&lt;BR /&gt; reportID = Mid(reportID, (InStr(reportID, "\")+1))&lt;BR /&gt; end if&lt;BR /&gt;&lt;BR /&gt; reportName = rep.Name&lt;BR /&gt;&lt;BR /&gt; reportFile = tempFolder &amp;amp; reportID &amp;amp; "_" &amp;amp; reportName &amp;amp; ".pdf"&lt;BR /&gt;&lt;BR /&gt; printReportPDF reportID, reportFile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;next&lt;BR /&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Jan 2010 20:56:03 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-01-11T20:56:03Z</dc:date>
    <item>
      <title>Pulling the report ID with a macro without using the backend</title>
      <link>https://community.qlik.com/t5/QlikView/Pulling-the-report-ID-with-a-macro-without-using-the-backend/m-p/207873#M63475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the Report Editor window, there is a list of Available reports for the document and the user. Is there a way to pull the reports for either category by the value in the Id column into a macro without building a table in the backend and loading this data manually?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, can a macro example be posted. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2010 17:39:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pulling-the-report-ID-with-a-macro-without-using-the-backend/m-p/207873#M63475</guid>
      <dc:creator />
      <dc:date>2010-01-11T17:39:59Z</dc:date>
    </item>
    <item>
      <title>Pulling the report ID with a macro without using the backend</title>
      <link>https://community.qlik.com/t5/QlikView/Pulling-the-report-ID-with-a-macro-without-using-the-backend/m-p/207874#M63476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;This is straight from the API guide:&lt;BR /&gt;&lt;B&gt;sub&lt;/B&gt; reports&lt;BR /&gt;&lt;B&gt;set&lt;/B&gt; reps = ActiveDocument.GetDocReports&lt;BR /&gt;&lt;B&gt;for&lt;/B&gt; i = 0 to reps.Count-1&lt;BR /&gt; &lt;B&gt;set&lt;/B&gt; rep = reps.Item(i)&lt;BR /&gt; &lt;B&gt;msgbox&lt;/B&gt;(rep.Id)&lt;BR /&gt;&lt;B&gt;next&lt;BR /&gt;end&lt;/B&gt; &lt;B&gt;sub&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;/B&gt; Hope it helps&lt;/P&gt;&lt;P&gt;/Fredrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2010 17:49:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pulling-the-report-ID-with-a-macro-without-using-the-backend/m-p/207874#M63476</guid>
      <dc:creator />
      <dc:date>2010-01-11T17:49:15Z</dc:date>
    </item>
    <item>
      <title>Pulling the report ID with a macro without using the backend</title>
      <link>https://community.qlik.com/t5/QlikView/Pulling-the-report-ID-with-a-macro-without-using-the-backend/m-p/207875#M63477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you this was exactly what I was looking for to accomplish my task as coded below. Noticed that the Document reports and User reports are distinguished by a prefix (for example: Document\RP01) so had to strip it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub reports&lt;BR /&gt;tempFolder = "U:\Transfer\"&lt;BR /&gt;set reps = ActiveDocument.GetDocReports&lt;BR /&gt;for i = 0 to reps.Count-1&lt;BR /&gt; set rep = reps.Item(i)&lt;BR /&gt;&lt;BR /&gt; reportID = rep.Id&lt;BR /&gt; if InStr(reportID, "\") &amp;gt; 0 then&lt;BR /&gt; reportID = Mid(reportID, (InStr(reportID, "\")+1))&lt;BR /&gt; end if&lt;BR /&gt;&lt;BR /&gt; reportName = rep.Name&lt;BR /&gt;&lt;BR /&gt; reportFile = tempFolder &amp;amp; reportID &amp;amp; "_" &amp;amp; reportName &amp;amp; ".pdf"&lt;BR /&gt;&lt;BR /&gt; printReportPDF reportID, reportFile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;next&lt;BR /&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2010 20:56:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pulling-the-report-ID-with-a-macro-without-using-the-backend/m-p/207875#M63477</guid>
      <dc:creator />
      <dc:date>2010-01-11T20:56:03Z</dc:date>
    </item>
  </channel>
</rss>

