<?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: Print report to PDF. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Print-report-to-PDF/m-p/1288623#M403219</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your suggestion, I will try this ASAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Mar 2017 15:31:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-03-02T15:31:05Z</dc:date>
    <item>
      <title>Print report to PDF.</title>
      <link>https://community.qlik.com/t5/QlikView/Print-report-to-PDF/m-p/1288620#M403216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to save a report after a reload using a macro.&lt;/P&gt;&lt;P&gt;This is working great but the fact that I receive a &lt;SPAN style="text-decoration: underline;"&gt;Save As&lt;/SPAN&gt; message each time the macro runs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have spend the last hour and a half sifting through the forum trying to find a solution and I have tried several pieces of code but I cannot get rid of this message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using Qlikview 12.10 on a windows 7 64 bit machine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The PDF printer I am using is CutePDF Writer, and I already tried looking for a specific setting in this tool that enables this popup window, couldn't find any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script I am currently using is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff; font-size: 10pt;"&gt;sub printReport&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff; font-size: 10pt;"&gt;printReportPDF "C:\Download\Test_pdf.pdf"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff; font-size: 10pt;"&gt;ActiveDocument.GetApplication.Sleep 2000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff; font-size: 10pt;"&gt;ActiveDocument.PrintReport "RP01", "QlikViewPDF",False&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff; font-size: 10pt;"&gt;ActiveDocument.GetApplication.Sleep 10000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff; font-size: 10pt;"&gt;end sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="color: #3366ff; font-size: 10pt;"&gt;Function printReportPDF(pdfOutputFile)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff; font-size: 10pt;"&gt;Set WSHShell = CreateObject("WScript.Shell")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff; font-size: 10pt;"&gt;&amp;nbsp; WSHShell.RegWrite "HKCU\Software\QlikViewPDF\OutputFile", pdfOutputFile, "REG_SZ"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #3366ff; font-size: 10pt;"&gt;&amp;nbsp; WSHShell.RegWrite "HKCU\Software\QlikViewPDF\BypassSaveAs", "1", "REG_SZ"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff; font-size: 10pt;"&gt;Set WSHShell = nothing&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff; font-size: 10pt;"&gt;End function&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt;"&gt;I want to thank you all for your help in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt;"&gt;Kind regards, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt;"&gt;Mike&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2017 15:13:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Print-report-to-PDF/m-p/1288620#M403216</guid>
      <dc:creator />
      <dc:date>2017-03-01T15:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Print report to PDF.</title>
      <link>https://community.qlik.com/t5/QlikView/Print-report-to-PDF/m-p/1288621#M403217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No suggestions? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2017 13:36:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Print-report-to-PDF/m-p/1288621#M403217</guid>
      <dc:creator />
      <dc:date>2017-03-02T13:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: Print report to PDF.</title>
      <link>https://community.qlik.com/t5/QlikView/Print-report-to-PDF/m-p/1288622#M403218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try it this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff; font-size: 10pt;"&gt;sub printReport&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set doc = &lt;SPAN style="color: #3366ff; font-size: 10pt;"&gt;ActiveDocument&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff; font-size: 10pt;"&gt;&lt;SPAN style="color: #3366ff; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; report = &lt;SPAN style="color: #3366ff; font-size: 10pt;"&gt;"RP01"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff; font-size: 10pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; call&lt;/STRONG&gt; printReportPDF("C:\Download\Test_pdf.pdf", doc, report)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff; font-size: 10pt;"&gt;end sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="color: #3366ff; font-size: 10pt;"&gt;&lt;STRONG&gt;sub&lt;/STRONG&gt; printReportPDF(pdfOutputFile, doc, Report)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set WSHShell = CreateObject("WScript.Shell")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;WSHShell.RegWrite "HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows\Device", "QlikViewPDF", "REG_SZ"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WSHShell.RegWrite "HKCU\Software\QlikViewPDF\OutputFile", pdfOutputFile, "REG_SZ"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #3366ff; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WSHShell.RegWrite "HKCU\Software\QlikViewPDF\BypassSaveAs", "1", "REG_SZ"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set WSHShell = nothing&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; doc.GetApplication.Sleep 1000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; doc.PrintReport Report, "QlikViewPDF",False&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; doc.GetApplication.Sleep 4000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff; font-size: 10pt;"&gt;End &lt;STRONG&gt;sub&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt;"&gt;Here is another example: &lt;A href="https://community.qlik.com/message/311543"&gt;Re: automatically print report on harddrive printer&lt;/A&gt;‌ and it might be also useful to switch to the new printer: &lt;A href="https://community.qlik.com/message/402191"&gt;Re: generate pdf with Xchange&lt;/A&gt;‌ than the QlikViewPDF printer is quite old and worked great with QV 8 but it became a bit unstable within QV 11 and I switched all tasks to PDF XChange.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt;"&gt;- Marcus&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2017 15:07:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Print-report-to-PDF/m-p/1288622#M403218</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-03-02T15:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Print report to PDF.</title>
      <link>https://community.qlik.com/t5/QlikView/Print-report-to-PDF/m-p/1288623#M403219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your suggestion, I will try this ASAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2017 15:31:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Print-report-to-PDF/m-p/1288623#M403219</guid>
      <dc:creator />
      <dc:date>2017-03-02T15:31:05Z</dc:date>
    </item>
  </channel>
</rss>

