<?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 Executing Macro when distributin PDF Report in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Executing-Macro-when-distributin-PDF-Report/m-p/159051#M1309499</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anybody?&lt;/P&gt;&lt;P&gt;I really need help with this.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Oct 2010 09:32:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-10-27T09:32:06Z</dc:date>
    <item>
      <title>Executing Macro when distributin PDF Report</title>
      <link>https://community.qlik.com/t5/QlikView/Executing-Macro-when-distributin-PDF-Report/m-p/159050#M1309497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I wrote a macro in my QV document, which selects values from my document.&lt;BR /&gt;I also set up a Document Event Trigger (OnPostReload), which executes the macro, when the document will be reloaded.&lt;/P&gt;&lt;P&gt;The Problem is, that I want to execute the macro, when I start my task to send the PDF Report from the document.&lt;BR /&gt;I enabled reload for the distribution task, but nothing happens.&lt;/P&gt;&lt;P&gt;Is there a possible way, to execute the macro when executing the PDF distribution task via Enterprise Management Console?&lt;/P&gt;&lt;P&gt;Here's my macro, maybe it helps:&lt;/P&gt;&lt;P&gt;Month_now = Month(now())&lt;BR /&gt;'Timestamp_now = Month(now&lt;BR /&gt;&lt;BR /&gt;sub auswahlpdf:&lt;BR /&gt;ActiveDocument.ReloadEx 2,1&lt;BR /&gt;ActiveDocument.Fields("Timestamp").Select "1 FC Target"&lt;BR /&gt;ActiveDocument.Fields("Timestamp").ToggleSelect "actual"&lt;BR /&gt;'ActiveDocument.Fields("Reporting Month").ToggleSelect "Month_now"&lt;BR /&gt;ActiveDocument.Fields("Reporting Month").ToggleSelect "Month_Now"&lt;BR /&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Executing-Macro-when-distributin-PDF-Report/m-p/159050#M1309497</guid>
      <dc:creator />
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Executing Macro when distributin PDF Report</title>
      <link>https://community.qlik.com/t5/QlikView/Executing-Macro-when-distributin-PDF-Report/m-p/159051#M1309499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anybody?&lt;/P&gt;&lt;P&gt;I really need help with this.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Oct 2010 09:32:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Executing-Macro-when-distributin-PDF-Report/m-p/159051#M1309499</guid>
      <dc:creator />
      <dc:date>2010-10-27T09:32:06Z</dc:date>
    </item>
  </channel>
</rss>

