<?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 Can't print to PDF in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Can-t-print-to-PDF/m-p/144141#M23181</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I run your code in DEBUG, I get a message "ActiveX component can't create object: 'WScript.Shell'". This is with Macro security set to safe mode.&lt;/P&gt;&lt;P&gt;If I set Macro security to System Access, it runs and creates 2 keys in the registry. I cannot see how it is supposed to print from there - are you missing a few lines?&lt;/P&gt;&lt;P&gt;e.g. ActiveDocument.PrintReport oReport, "QlikViewPDF", false&lt;BR /&gt;... put this before&lt;/P&gt;&lt;P&gt;Set WSHShell = nothing&lt;/P&gt;&lt;P&gt;Link to PDF Writer&lt;/P&gt;&lt;P&gt;http://ftp.qliktech.com/QvWebDownloads/Release8/QvPDFSetup.exe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 May 2009 23:07:28 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-05-14T23:07:28Z</dc:date>
    <item>
      <title>Can't print to PDF</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-print-to-PDF/m-p/144139#M23179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I've seen many examples for printing reports to PDF. It seams easy but the code doesn't work.&lt;/P&gt;&lt;P&gt;I only need to print one report to PDF and do not have to answer the name neither the path. I'm using that code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;sub printPDF()&lt;BR /&gt; tempFolder="c:\TMP"&lt;BR /&gt; set rep=ActiveDocument.GetReport("RP01")&lt;BR /&gt; reportName=rep.Name&lt;BR /&gt; reportFile=tempFolder &amp;amp; reportName &amp;amp; ".pdf"&lt;BR /&gt; printReportPDF rep, reportFile&lt;BR /&gt;End Sub&lt;BR /&gt;function printReportPDF(oReport, pdfOutputFile)&lt;BR /&gt; Set WSHShell = CreateObject("WScript.Shell")&lt;BR /&gt; WSHShell.RegWrite "HKCU\Software\QlikViewPDF\OutputFile", pdfOutputFile, "REG_SZ"&lt;BR /&gt; WSHShell.RegWrite "HKCU\Software\QlikViewPDF\BypassSaveAs", "1", "REG_SZ"&lt;BR /&gt; Set WSHShell = nothing&lt;BR /&gt;End Function&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;It just don't do anything.&lt;/P&gt;&lt;P&gt;Any ideas, thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 18:48:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-print-to-PDF/m-p/144139#M23179</guid>
      <dc:creator />
      <dc:date>2009-05-14T18:48:59Z</dc:date>
    </item>
    <item>
      <title>Can't print to PDF</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-print-to-PDF/m-p/144140#M23180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have QlikView PDF Writer installed? It's a separate add-on. If you search this forum, you'll see a download link - I remember someone posted it once.&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 22:39:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-print-to-PDF/m-p/144140#M23180</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2009-05-14T22:39:55Z</dc:date>
    </item>
    <item>
      <title>Can't print to PDF</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-print-to-PDF/m-p/144141#M23181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I run your code in DEBUG, I get a message "ActiveX component can't create object: 'WScript.Shell'". This is with Macro security set to safe mode.&lt;/P&gt;&lt;P&gt;If I set Macro security to System Access, it runs and creates 2 keys in the registry. I cannot see how it is supposed to print from there - are you missing a few lines?&lt;/P&gt;&lt;P&gt;e.g. ActiveDocument.PrintReport oReport, "QlikViewPDF", false&lt;BR /&gt;... put this before&lt;/P&gt;&lt;P&gt;Set WSHShell = nothing&lt;/P&gt;&lt;P&gt;Link to PDF Writer&lt;/P&gt;&lt;P&gt;http://ftp.qliktech.com/QvWebDownloads/Release8/QvPDFSetup.exe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 23:07:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-print-to-PDF/m-p/144141#M23181</guid>
      <dc:creator />
      <dc:date>2009-05-14T23:07:28Z</dc:date>
    </item>
    <item>
      <title>Can't print to PDF</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-print-to-PDF/m-p/144142#M23182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, I was trying with CutePDF and it didn't work. But once I installed the QlikViewPDF printer it works.&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 15:03:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-print-to-PDF/m-p/144142#M23182</guid>
      <dc:creator />
      <dc:date>2009-05-15T15:03:27Z</dc:date>
    </item>
    <item>
      <title>Can't print to PDF</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-print-to-PDF/m-p/144143#M23183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just a sidenote..&lt;/P&gt;&lt;P&gt;If I recall correctly changing the reg key paths should make it work with CutePDF also. In other words, changing &lt;STRONG&gt;QlikViewPDF&lt;/STRONG&gt; to &lt;STRONG&gt;CutePDF.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 03:43:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-print-to-PDF/m-p/144143#M23183</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-20T03:43:58Z</dc:date>
    </item>
    <item>
      <title>Can't print to PDF</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-print-to-PDF/m-p/144144#M23184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jsn, You can do the same with CutePDF, but you need Custom cutepdf to accept the changes in the registry.&lt;/P&gt;&lt;P&gt;Custom Cute pdf is not for free - I think it cost 500$&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 12:25:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-print-to-PDF/m-p/144144#M23184</guid>
      <dc:creator />
      <dc:date>2009-05-20T12:25:27Z</dc:date>
    </item>
  </channel>
</rss>

