<?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 Re: macro execution does not work after reloading through scheduler in QV 11 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/macro-execution-does-not-work-after-reloading-through-scheduler/m-p/346703#M1276250</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used windows batch file to create the PDF and its working fine now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for everyone's help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jun 2012 05:39:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-06-14T05:39:22Z</dc:date>
    <item>
      <title>macro execution does not work after reloading through scheduler in QV 11</title>
      <link>https://community.qlik.com/t5/QlikView/macro-execution-does-not-work-after-reloading-through-scheduler/m-p/346694#M1276233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written a macro to create pdf after reloading is done.&lt;/P&gt;&lt;P&gt;This works fine if the report is reloaded through QV Desktop.&lt;/P&gt;&lt;P&gt;but when the same report is reloaded through QV server using scheduler, reloading works fine but pdf does not get generated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the macro I have written in Edit module and have triggered it on PostReload.&lt;/P&gt;&lt;P&gt;sub PrintReport&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActiveDocument.GetApplication.Sleep 2000&lt;/P&gt;&lt;P&gt;ActiveDocument.PrintReport "RP01", "PDF-Xchange 4.0", false ' This line of code pops up save as dlg&lt;/P&gt;&lt;P&gt;ActiveDocument.GetApplication.Sleep 10000&lt;/P&gt;&lt;P&gt;&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;ea&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/macro-execution-does-not-work-after-reloading-through-scheduler/m-p/346694#M1276233</guid>
      <dc:creator />
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>macro execution does not work after reloading through scheduler in QV 11</title>
      <link>https://community.qlik.com/t5/QlikView/macro-execution-does-not-work-after-reloading-through-scheduler/m-p/346695#M1276235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Macros doesn't work in Publisher.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to run it as a Supporting task / External program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2012 11:40:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/macro-execution-does-not-work-after-reloading-through-scheduler/m-p/346695#M1276235</guid>
      <dc:creator>jerrysvensson</dc:creator>
      <dc:date>2012-04-11T11:40:57Z</dc:date>
    </item>
    <item>
      <title>macro execution does not work after reloading through scheduler in QV 11</title>
      <link>https://community.qlik.com/t5/QlikView/macro-execution-does-not-work-after-reloading-through-scheduler/m-p/346696#M1276237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to create supporting task /External Program?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to call it after reloading?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have QV 11 and No Publisher.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reply fast as I need to complete this today.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2012 11:45:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/macro-execution-does-not-work-after-reloading-through-scheduler/m-p/346696#M1276237</guid>
      <dc:creator />
      <dc:date>2012-04-11T11:45:31Z</dc:date>
    </item>
    <item>
      <title>macro execution does not work after reloading through scheduler in QV 11</title>
      <link>https://community.qlik.com/t5/QlikView/macro-execution-does-not-work-after-reloading-through-scheduler/m-p/346697#M1276239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;External Tasks is only avaiable when using Publisher.&lt;/P&gt;&lt;P&gt;Instead, schedule a .cmd/.bat-file which executes qv.exe /r &amp;lt;path\filename.qvw&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only qv.exe will trigger OnPostReload-events, NOT Publisher.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/21613"&gt;Magnus Åvitsland&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.framsteg.com" target="_blank"&gt;Framsteg Business Intelligence Corp.&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2012 14:44:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/macro-execution-does-not-work-after-reloading-through-scheduler/m-p/346697#M1276239</guid>
      <dc:creator>magavi_framsteg</dc:creator>
      <dc:date>2012-04-11T14:44:04Z</dc:date>
    </item>
    <item>
      <title>macro execution does not work after reloading through scheduler in QV 11</title>
      <link>https://community.qlik.com/t5/QlikView/macro-execution-does-not-work-after-reloading-through-scheduler/m-p/346698#M1276241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Magnus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to schedule .bat file? using QV scheduler?&lt;/P&gt;&lt;P&gt;if yes how and if no then also how?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2012 04:04:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/macro-execution-does-not-work-after-reloading-through-scheduler/m-p/346698#M1276241</guid>
      <dc:creator />
      <dc:date>2012-04-12T04:04:25Z</dc:date>
    </item>
    <item>
      <title>macro execution does not work after reloading through scheduler in QV 11</title>
      <link>https://community.qlik.com/t5/QlikView/macro-execution-does-not-work-after-reloading-through-scheduler/m-p/346699#M1276243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Magnus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did try to create the .bat file but when executing the macro, it gets hung.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I disable the postreload trigger the .bat file works fine.&lt;/P&gt;&lt;P&gt;what can be the reason?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2012 04:48:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/macro-execution-does-not-work-after-reloading-through-scheduler/m-p/346699#M1276243</guid>
      <dc:creator />
      <dc:date>2012-04-12T04:48:17Z</dc:date>
    </item>
    <item>
      <title>macro execution does not work after reloading through scheduler in QV 11</title>
      <link>https://community.qlik.com/t5/QlikView/macro-execution-does-not-work-after-reloading-through-scheduler/m-p/346700#M1276245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What happens if you logon to the server on which qlikview publisher runs with the same user that runs the publisher service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then open your document with qv.exe (standard QlikView) and do a manual reload?&lt;/P&gt;&lt;P&gt;Does that work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ActiveDocument.PrintReport "RP01", "PDF-Xchange 4.0", false ' This line of code pops up save as dlg&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The macro cannot answer YES on the prompt for "save as", so you could try and delete the PDF first if it already exists, and then print the new PDF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/21613"&gt;Magnus Åvitsland&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.framsteg.com" target="_blank"&gt;Framsteg Business Intelligence Corp.&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2012 08:08:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/macro-execution-does-not-work-after-reloading-through-scheduler/m-p/346700#M1276245</guid>
      <dc:creator>magavi_framsteg</dc:creator>
      <dc:date>2012-04-12T08:08:53Z</dc:date>
    </item>
    <item>
      <title>macro execution does not work after reloading through scheduler in QV 11</title>
      <link>https://community.qlik.com/t5/QlikView/macro-execution-does-not-work-after-reloading-through-scheduler/m-p/346701#M1276247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Magnus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not have Qlikview Publisher.&lt;/P&gt;&lt;P&gt;But when I run the report manually, It will create the PDF.&lt;/P&gt;&lt;P&gt;I have bypassed the saveas dialog. So it will not ask for path and filename. It will drectly create the PDF.&lt;/P&gt;&lt;P&gt;When I reload the report through QV server, it reloads the report but do not create the pdf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also did try by deleting the old pdf and reloaded through QV server. But stlll no PDF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I am asking how to schedule the .bat file and why does it hung it when macro is included.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2012 08:38:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/macro-execution-does-not-work-after-reloading-through-scheduler/m-p/346701#M1276247</guid>
      <dc:creator />
      <dc:date>2012-04-12T08:38:32Z</dc:date>
    </item>
    <item>
      <title>macro execution does not work after reloading through scheduler in QV 11</title>
      <link>https://community.qlik.com/t5/QlikView/macro-execution-does-not-work-after-reloading-through-scheduler/m-p/346702#M1276249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Apu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OK.&lt;/P&gt;&lt;P&gt;- When you do it manually;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Do you reload it using the same user which runs the "QlikView Server" service?&lt;/P&gt;&lt;P&gt;&amp;nbsp; Log on to Windows using that user OR run qv.exe as that user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- When QlikView Server does the reload;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Does it execute the rest of the macro code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/21613"&gt;Magnus Åvitsland&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.framsteg.com" target="_blank"&gt;Framsteg Business Intelligence Corp.&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2012 07:13:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/macro-execution-does-not-work-after-reloading-through-scheduler/m-p/346702#M1276249</guid>
      <dc:creator>magavi_framsteg</dc:creator>
      <dc:date>2012-04-13T07:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: macro execution does not work after reloading through scheduler in QV 11</title>
      <link>https://community.qlik.com/t5/QlikView/macro-execution-does-not-work-after-reloading-through-scheduler/m-p/346703#M1276250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used windows batch file to create the PDF and its working fine now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for everyone's help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 05:39:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/macro-execution-does-not-work-after-reloading-through-scheduler/m-p/346703#M1276250</guid>
      <dc:creator />
      <dc:date>2012-06-14T05:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: macro execution does not work after reloading through scheduler in QV 11</title>
      <link>https://community.qlik.com/t5/QlikView/macro-execution-does-not-work-after-reloading-through-scheduler/m-p/346704#M1276251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Apu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also try to export sheet imageafter reloading. Will you please send me your batch file which worked for you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Mar 2013 19:50:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/macro-execution-does-not-work-after-reloading-through-scheduler/m-p/346704#M1276251</guid>
      <dc:creator />
      <dc:date>2013-03-15T19:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: macro execution does not work after reloading through scheduler in QV 11</title>
      <link>https://community.qlik.com/t5/QlikView/macro-execution-does-not-work-after-reloading-through-scheduler/m-p/346705#M1276252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;follow the below steps to create a batch file:&lt;/P&gt;&lt;P&gt;1. open notepad.&lt;/P&gt;&lt;P&gt;2. write statement as - "C:\Program Files\QlikView\Qv.exe" "E:\Documents\Sales.qvw"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1st parameter is the location of the qlikview software and &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2nd parameter is the location of qvw file.&lt;/P&gt;&lt;P&gt;3. save the file with the name as test.bat&lt;/P&gt;&lt;P&gt;4. close the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To test&lt;/P&gt;&lt;P&gt;1. double click the batch file.&lt;/P&gt;&lt;P&gt;This will open the qvw file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 05:25:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/macro-execution-does-not-work-after-reloading-through-scheduler/m-p/346705#M1276252</guid>
      <dc:creator />
      <dc:date>2013-03-18T05:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: macro execution does not work after reloading through scheduler in QV 11</title>
      <link>https://community.qlik.com/t5/QlikView/macro-execution-does-not-work-after-reloading-through-scheduler/m-p/346706#M1276253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello I have a similar problem maybe smb can answer this thread&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/97887"&gt;http://community.qlik.com/thread/97887&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;P&gt;chesterluck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 10:21:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/macro-execution-does-not-work-after-reloading-through-scheduler/m-p/346706#M1276253</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-04T10:21:52Z</dc:date>
    </item>
  </channel>
</rss>

