<?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 PDF Creation Spooling in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/PDF-Creation-Spooling/m-p/316327#M116672</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Of course I figured this out after finally giving up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of doing the job OnPostReload, I moved it to OnOpen, and setup a variable (vSendReports) and then modified my batch to call QV.EXE with /vvSendReports=1 and it works fine now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Must just be the whole 'don't generate PDFs during a reload' issue.&amp;nbsp; I just did not grasp how to circumvent the problem until I finally caught some extra detail in reply #3 here : &lt;A _jive_internal="true" href="https://community.qlik.com/thread/13966?start=0&amp;amp;tstart=0"&gt;http://community.qlik.com/thread/13966?start=0&amp;amp;tstart=0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone else is still struggling, let me know and I'll provide some non-proprietary source.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jun 2011 20:35:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-06-23T20:35:05Z</dc:date>
    <item>
      <title>PDF Creation Spooling</title>
      <link>https://community.qlik.com/t5/QlikView/PDF-Creation-Spooling/m-p/316326#M116671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I have an issue with creating a PDF via a batch file (reload command) and macro.&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;At first, I thought it to be related to the verison of the QlikView PDF Printer software, but I tried both 7.X and 9.X, only to have both have the exact same issue.&lt;/DIV&gt;&lt;DIV&gt;I've read through about a dozen different walkthroughs and macro examples on here but they all seem to either be outdated or reference other community postings (which is a whole other issue since the upgrade of the Community pages)... any help is greatly appreciated!&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; I have provided emphasis where applicable to point out the 'issues' as I see them occurring on the server.&amp;nbsp; Note: Email Distribution portion works indepedently, so the PDF creation portion is the only part not working.&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;BR /&gt;1.&amp;nbsp; Macro (PrintReport) is setup to be called OnPostReload:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;DIV&gt;&lt;BR /&gt;sub PrintReport &lt;BR /&gt; &lt;BR /&gt; ActiveDocument.GetApplication.Sleep 2000&lt;BR /&gt; &lt;BR /&gt; Set WSHShell = CreateObject("WScript.Shell") &lt;BR /&gt; &lt;BR /&gt; fln = "E:\QlikView\Exports\Finance\Report.pdf"&lt;BR /&gt;&lt;BR /&gt; ActiveDocument.GetApplication.Sleep 2000&lt;BR /&gt; ActiveDocument.PrintDocReport "RP01", "QlikViewPDF"&lt;BR /&gt; ActiveDocument.GetApplication.Sleep 2000&lt;BR /&gt; &lt;BR /&gt; Set WSHShell = nothing&lt;BR /&gt; &lt;BR /&gt; MailReport()&lt;BR /&gt; &lt;BR /&gt; end sub&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt; sub MailReport&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN&gt; strTo = "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:email@company.com"&gt;email@company.com&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt; fln = "E:\QlikView\Exports\Finance\Report.pdf"&lt;BR /&gt; &lt;BR /&gt; set objMessage = CreateObject("CDO.Message")&lt;BR /&gt; objMessage.Subject = "Daily Sales Report"&lt;BR /&gt;&lt;SPAN&gt; objMessage.From = "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:email@qlik.company.com"&gt;email@qlik.company.com&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt; objMessage.To = strTo&lt;BR /&gt; &lt;BR /&gt; objMessage.TextBody = "DSR"&lt;BR /&gt; &lt;BR /&gt; objMessage.AddAttachment fln&lt;BR /&gt; &lt;BR /&gt; objMessage.Configuration.Fields.Item _ &lt;BR /&gt;&lt;SPAN&gt; ("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/sendusing"&gt;http://schemas.microsoft.com/cdo/configuration/sendusing&lt;/A&gt;&lt;SPAN&gt;") = 2&lt;/SPAN&gt;&lt;BR /&gt; objMessage.Configuration.Fields.Item _ &lt;BR /&gt;&lt;SPAN&gt; ("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/smtpserver"&gt;http://schemas.microsoft.com/cdo/configuration/smtpserver&lt;/A&gt;&lt;SPAN&gt;") = "mail.company.com"&lt;/SPAN&gt;&lt;BR /&gt; objMessage.Configuration.Fields.Item _ &lt;BR /&gt;&lt;SPAN&gt; ("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/smtpserverport"&gt;http://schemas.microsoft.com/cdo/configuration/smtpserverport&lt;/A&gt;&lt;SPAN&gt;") = 25&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; objMessage.Configuration.Fields.Update&lt;BR /&gt; objMessage.Send&lt;BR /&gt; &lt;BR /&gt; end sub &lt;/DIV&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;STRONG&gt;If I 'TEST' the Macro, it works perfectly fine - I get the email within a few seconds of completion.&amp;nbsp; If I reload (with QlikView open) it also works exactly as intended.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000; font-size: 12pt; text-decoration: underline;"&gt;MAIN ISSUE: If I reload the QVW via a command line / batch call (below), it ALWAYS stops while spooling the document to the printer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;I have tried BOTH versions of the PDF printer provided here, and they both behave similarly.&amp;nbsp; The 9.X version has an extra dialog box in the bottom right whose progress bar never moves.&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;(batch call)&lt;BR /&gt;"C:\Program Files\QlikView\Qv.exe" "E:\QlikView\Access Point\DSR.qvw" /r&lt;BR /&gt;&lt;P&gt;I know we've had several dozen (if not hundreds) of previous posts about this, but I've been stuck for a week or more trying all combinations on my own to no avail.&amp;nbsp; Yet, others on here appear to have this working, but the more I look the more it seems like the newer software (QV 10 / PDFXChange 3.0) seems to have made the legacy instructions incompatible.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have also verified that the security settings in the module are allowing system access as necessary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/throwshandsup&amp;nbsp; XD&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2011 16:49:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/PDF-Creation-Spooling/m-p/316326#M116671</guid>
      <dc:creator />
      <dc:date>2011-06-23T16:49:20Z</dc:date>
    </item>
    <item>
      <title>PDF Creation Spooling</title>
      <link>https://community.qlik.com/t5/QlikView/PDF-Creation-Spooling/m-p/316327#M116672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Of course I figured this out after finally giving up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of doing the job OnPostReload, I moved it to OnOpen, and setup a variable (vSendReports) and then modified my batch to call QV.EXE with /vvSendReports=1 and it works fine now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Must just be the whole 'don't generate PDFs during a reload' issue.&amp;nbsp; I just did not grasp how to circumvent the problem until I finally caught some extra detail in reply #3 here : &lt;A _jive_internal="true" href="https://community.qlik.com/thread/13966?start=0&amp;amp;tstart=0"&gt;http://community.qlik.com/thread/13966?start=0&amp;amp;tstart=0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone else is still struggling, let me know and I'll provide some non-proprietary source.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2011 20:35:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/PDF-Creation-Spooling/m-p/316327#M116672</guid>
      <dc:creator />
      <dc:date>2011-06-23T20:35:05Z</dc:date>
    </item>
  </channel>
</rss>

