<?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: A challenge in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/A-challenge/m-p/267085#M707892</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I thougt of attaching some sample as well.&lt;/P&gt;&lt;P&gt;Just after you reload the application run this batch file as well.&lt;/P&gt;&lt;P&gt;So this bat file will let you open the application, and on open triggers a macro which will activate the sheet2. and closes the doc as well. &lt;/P&gt;&lt;P&gt;But you mey need to copy your code of epxorting the charts in this macro.&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Sep 2011 09:01:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-09-16T09:01:29Z</dc:date>
    <item>
      <title>A challenge</title>
      <link>https://community.qlik.com/t5/QlikView/A-challenge/m-p/267080#M707887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a challenge:&lt;/P&gt;&lt;P&gt;I wish to automatically print a pdf document that will be then emailed using another process/application to our sales force. (For the interested, the 'other application' we use is TaskCentre.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The printout should be run after the last reload of the day. (our server is set to reload every 30 minutes and the last reload is at 11:30 PM)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have set some script that is triggered after OnPostReload. The trigger activates a macro that checks if the time is after 11:30 PM. If yes, it calls another macro/function which prints the report using Acrobat Distiller and saves it in a prescribed location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When reloading manually, the process runs like a charm. Reloads&amp;gt;OnPostReload trigger is fired and the report is printed out nicely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the challenge:&lt;/P&gt;&lt;P&gt;According to QlikView Reference Manual it is impossible to trigger OnPostReload action from a server's load process (Book II Part III 29.3.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I thought that I could start my local application remotely (from a VBA calling a shell process) Doing so with the appropriate command line flags the application can be started:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim a&lt;/P&gt;&lt;P&gt;a = Shell("C:\Program Files\QlikView\qv.exe /NoSecurity /R C:\MyApplication.qvw") &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;("/NoSecurity" bypasses the need to confirm start with macros and "/R" tells the application start with a reload)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All works well. The application starts in the background, the load starts and finishes but the printout does not occur.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know why or is there a better way to achieve what I am trying to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 23:16:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/A-challenge/m-p/267080#M707887</guid>
      <dc:creator>jduenyas</dc:creator>
      <dc:date>2011-09-15T23:16:59Z</dc:date>
    </item>
    <item>
      <title>A challenge</title>
      <link>https://community.qlik.com/t5/QlikView/A-challenge/m-p/267081#M707888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure there's a better way, buy QlikView Publisher and PDF Report Distribution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 23:25:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/A-challenge/m-p/267081#M707888</guid>
      <dc:creator>danielrozental</dc:creator>
      <dc:date>2011-09-15T23:25:34Z</dc:date>
    </item>
    <item>
      <title>A challenge</title>
      <link>https://community.qlik.com/t5/QlikView/A-challenge/m-p/267082#M707889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thank you Daniel. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was not aware of the product and could not find any references to it in QlikView.com.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can it be set to run on schedule or does it still need human intervention? We have many such automatic processes that are generated mainly by TaskCentre but the one I described cannot be done by this application&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 23:55:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/A-challenge/m-p/267082#M707889</guid>
      <dc:creator>jduenyas</dc:creator>
      <dc:date>2011-09-15T23:55:31Z</dc:date>
    </item>
    <item>
      <title>A challenge</title>
      <link>https://community.qlik.com/t5/QlikView/A-challenge/m-p/267083#M707890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it can be done automatically without any human intervention.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 00:01:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/A-challenge/m-p/267083#M707890</guid>
      <dc:creator>danielrozental</dc:creator>
      <dc:date>2011-09-16T00:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: A challenge</title>
      <link>https://community.qlik.com/t5/QlikView/A-challenge/m-p/267084#M707891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Macros set to trigger on PostReload event will not be triggered when you reload via batch file but will be run when it is manual.&lt;/P&gt;&lt;P&gt;So after the reloead completed via batch file, you can have a VBS file that can open the QVW application which is just reloaded and access a button which calls the macro and press the button using the syntax&lt;/P&gt;&lt;P&gt;rem ** press button BU01 **&lt;/P&gt;&lt;P&gt;ActiveDocument.GetSheetObject("BU01").Press&lt;/P&gt;&lt;P&gt;Then it will able to trigger the macro.&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 08:18:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/A-challenge/m-p/267084#M707891</guid>
      <dc:creator />
      <dc:date>2011-09-16T08:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: A challenge</title>
      <link>https://community.qlik.com/t5/QlikView/A-challenge/m-p/267085#M707892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I thougt of attaching some sample as well.&lt;/P&gt;&lt;P&gt;Just after you reload the application run this batch file as well.&lt;/P&gt;&lt;P&gt;So this bat file will let you open the application, and on open triggers a macro which will activate the sheet2. and closes the doc as well. &lt;/P&gt;&lt;P&gt;But you mey need to copy your code of epxorting the charts in this macro.&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 09:01:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/A-challenge/m-p/267085#M707892</guid>
      <dc:creator />
      <dc:date>2011-09-16T09:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: A challenge</title>
      <link>https://community.qlik.com/t5/QlikView/A-challenge/m-p/267086#M707893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Lovely!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you. I knew there's got to be a way via code.&lt;/P&gt;&lt;P&gt;VB is king!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Josh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 15:02:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/A-challenge/m-p/267086#M707893</guid>
      <dc:creator>jduenyas</dc:creator>
      <dc:date>2011-09-16T15:02:23Z</dc:date>
    </item>
  </channel>
</rss>

