<?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: problem PDF printing PDF-Xchange 3.0 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/problem-PDF-printing-PDF-Xchange-3-0/m-p/484849#M181122</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps the sleep interval is too short. I use in similar cases often .sleep 4000 to ensure the previous print the really saved before the next print start.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Jul 2013 11:35:41 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2013-07-16T11:35:41Z</dc:date>
    <item>
      <title>problem PDF printing PDF-Xchange 3.0</title>
      <link>https://community.qlik.com/t5/QlikView/problem-PDF-printing-PDF-Xchange-3-0/m-p/484848#M181121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a weird problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following OnPostReload macro defined and it works fine when I do a reload from the QV client.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example 1:&lt;/P&gt;&lt;P&gt;Sub printRP&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ActiveDocument.GetApplication.WaitForIdle(1000)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ActiveDocument.PrintReport "RP01", "PDF-XChange 3.0", false&lt;/P&gt;&lt;P&gt;&amp;nbsp; ActiveDocument.GetApplication.Sleep 1000&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; ActiveDocument.PrintReport "RP02", "PDF-XChange 3.0", false&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ActiveDocument.GetApplication.Sleep 1000&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After reload QV prints 2 reports with 2 different filenames (save setting Xchange %[DocName] %[Time]). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However when I start the qvw with this macro from the command prompt line nothing is saved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"C:\Program Files\QlikView\qv.exe" /r "D:\Qlikviewdata\mr.qvw"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But once I alter the macro and take out one of the two printreport lines it works fine again and the file is printed and saved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the following works also fine from the command prompt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example 2.&lt;/P&gt;&lt;P&gt;Sub printRP&lt;/P&gt;&lt;P&gt;&amp;nbsp; ActiveDocument.GetApplication.WaitForIdle(1000)&lt;/P&gt;&lt;P&gt;&amp;nbsp; ActiveDocument.PrintReport "RP01", "PDF-XChange 3.0", false&lt;/P&gt;&lt;P&gt;&amp;nbsp; ActiveDocument.GetApplication.Sleep 1000&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;End Sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So both examples work after a reload when I use the QV client&amp;nbsp; but only example 2 works when i do a reload from the command line. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea how I can have multiple reports printed from the command line?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gerrit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 10:48:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-PDF-printing-PDF-Xchange-3-0/m-p/484848#M181121</guid>
      <dc:creator />
      <dc:date>2013-07-16T10:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: problem PDF printing PDF-Xchange 3.0</title>
      <link>https://community.qlik.com/t5/QlikView/problem-PDF-printing-PDF-Xchange-3-0/m-p/484849#M181122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps the sleep interval is too short. I use in similar cases often .sleep 4000 to ensure the previous print the really saved before the next print start.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 11:35:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-PDF-printing-PDF-Xchange-3-0/m-p/484849#M181122</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2013-07-16T11:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: problem PDF printing PDF-Xchange 3.0</title>
      <link>https://community.qlik.com/t5/QlikView/problem-PDF-printing-PDF-Xchange-3-0/m-p/484850#M181123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried that but the same result.&lt;/P&gt;&lt;P&gt;Strange behaviour is also thet the qv.exe process keeps hanging in the task manager.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just found out that the /l option does the trick however that task leaves the qvw open.&lt;/P&gt;&lt;P&gt;I am going to try to build my solution with the /l option and do a taskkill at the end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gerrit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 11:55:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-PDF-printing-PDF-Xchange-3-0/m-p/484850#M181123</guid>
      <dc:creator />
      <dc:date>2013-07-16T11:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: problem PDF printing PDF-Xchange 3.0</title>
      <link>https://community.qlik.com/t5/QlikView/problem-PDF-printing-PDF-Xchange-3-0/m-p/484851#M181124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also other things like mail runs with the parameter /l better. To quit the application:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rem ** quit QlikView **&lt;/P&gt;&lt;P&gt;ActiveDocument.GetApplication.Quit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 12:20:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-PDF-printing-PDF-Xchange-3-0/m-p/484851#M181124</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2013-07-16T12:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: problem PDF printing PDF-Xchange 3.0</title>
      <link>https://community.qlik.com/t5/QlikView/problem-PDF-printing-PDF-Xchange-3-0/m-p/484852#M181125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "ActiveDocument.GetApplication.Quit'-trick solves all my problems &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gerrit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 12:27:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-PDF-printing-PDF-Xchange-3-0/m-p/484852#M181125</guid>
      <dc:creator />
      <dc:date>2013-07-16T12:27:41Z</dc:date>
    </item>
  </channel>
</rss>

