<?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: ActiveX component can't create object: 'PDFCreator.clsPDFCreator' in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/ActiveX-component-can-t-create-object-PDFCreator-clsPDFCreator/m-p/1010508#M342903</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Success. &lt;/P&gt;&lt;P&gt;I discovered .NET framework was not enabled on the server!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I realized this after de-installing PDFCreator and attempting to install V1.6&lt;/P&gt;&lt;P&gt;This then came up with the error whilst trying to install.&lt;/P&gt;&lt;P&gt;Shame the new version didnt tell me that &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now all I have to do is figure out how to email the output out to people automatically &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps anyone.&lt;/P&gt;&lt;P&gt;Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Nov 2015 15:23:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-11-17T15:23:07Z</dc:date>
    <item>
      <title>ActiveX component can't create object: 'PDFCreator.clsPDFCreator'</title>
      <link>https://community.qlik.com/t5/QlikView/ActiveX-component-can-t-create-object-PDFCreator-clsPDFCreator/m-p/1010507#M342902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Sorry if this has been answered before but I am struggling trying to get PDFCreator working with Qlik.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found some code to create as a macro but when it gets to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I have installed the latest PDFCreator on the server (v 2.2.1) (but not yet used it) and created a new module as&lt;/SPAN&gt; :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Option Explicit&lt;/P&gt;&lt;P&gt;Sub PrintReport()&lt;/P&gt;&lt;P&gt;'ActiveDocument.ClearAll&lt;/P&gt;&lt;P&gt;'Dim FieldName&lt;/P&gt;&lt;P&gt;'FieldName = "Country"&lt;/P&gt;&lt;P&gt;'Dim mySelections&lt;/P&gt;&lt;P&gt;'set mySelections = _&lt;/P&gt;&lt;P&gt;'ActiveDocument.Fields(FieldName).GetPossibleValues&lt;/P&gt;&lt;P&gt;'Dim i&lt;/P&gt;&lt;P&gt;'for i = 0 to mySelections.Count - 1&lt;/P&gt;&lt;P&gt;Dim FieldValue&lt;/P&gt;&lt;P&gt;'FieldValue = mySelections.Item(i).text&lt;/P&gt;&lt;P&gt;'ActiveDocument.Fields(FieldName).Select FieldValue&lt;/P&gt;&lt;P&gt;FieldValue = "201546"&lt;/P&gt;&lt;P&gt;Print_PDF FieldValue, "Op Report", "RP01"&lt;/P&gt;&lt;P&gt;'Next&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub Print_PDF(FieldValue, ReportName, ReportID)&lt;/P&gt;&lt;P&gt;' This is mostly reference code from the&lt;/P&gt;&lt;P&gt;' PDF Creator documentation&lt;/P&gt;&lt;P&gt;' Designed for early bind, set reference to PDFCreator&lt;/P&gt;&lt;P&gt;Dim pdfjob&lt;/P&gt;&lt;P&gt;Dim sPDFName&lt;/P&gt;&lt;P&gt;Dim sPDFPath&lt;/P&gt;&lt;P&gt;'/// Change the output file name here! ///&lt;/P&gt;&lt;P&gt;sPDFName = ReportName &amp;amp; " - " &amp;amp; FieldValue&lt;/P&gt;&lt;P&gt;sPDFPath = "D:\Qlikview"&lt;/P&gt;&lt;P&gt;Set pdfjob = CreateObject("PDFCreator.clsPDFCreator")&lt;/P&gt;&lt;P&gt;With pdfjob&lt;/P&gt;&lt;P&gt;If .cStart("/NoProcessingAtStartup") = False Then&lt;/P&gt;&lt;P&gt;If .cStart("/NoProcessingAtStartup", True) = _&lt;/P&gt;&lt;P&gt;False Then&lt;/P&gt;&lt;P&gt;Exit Sub&lt;/P&gt;&lt;P&gt;End if&lt;/P&gt;&lt;P&gt;.cVisible = True&lt;/P&gt;&lt;P&gt;End If&lt;/P&gt;&lt;P&gt;.cOption("UseAutosave") = 1&lt;/P&gt;&lt;P&gt;.cOption("UseAutosaveDirectory") = 1&lt;/P&gt;&lt;P&gt;.cOption("AutosaveDirectory") = sPDFPath&lt;/P&gt;&lt;P&gt;.cOption("AutosaveFilename") = sPDFName&lt;/P&gt;&lt;P&gt;.cOption("AutosaveFormat") = 0 ' 0 = PDF&lt;/P&gt;&lt;P&gt;.cClearCache&lt;/P&gt;&lt;P&gt;End With&lt;/P&gt;&lt;P&gt;' Print the QlikView Report&lt;/P&gt;&lt;P&gt;ActiveDocument.PrintReport ReportID, "PDFCreator"&lt;/P&gt;&lt;P&gt;' Wait until the print job has entered the print queue&lt;/P&gt;&lt;P&gt;Do Until pdfjob.cCountOfPrintjobs = 1&lt;/P&gt;&lt;P&gt;ActiveDocument.GetApplication.Sleep 20&lt;/P&gt;&lt;P&gt;' in VBScript use WScript.Sleep(20)&lt;/P&gt;&lt;P&gt;Loop&lt;/P&gt;&lt;P&gt;pdfjob.cPrinterStop = False&lt;/P&gt;&lt;P&gt;' Wait until PDF creator is finished&lt;/P&gt;&lt;P&gt;' then release the objects&lt;/P&gt;&lt;P&gt;Do Until pdfjob.cCountOfPrintjobs = 0&lt;/P&gt;&lt;P&gt;ActiveDocument.GetApplication.Sleep 20&lt;/P&gt;&lt;P&gt;Loop&lt;/P&gt;&lt;P&gt;pdfjob.cClose&lt;/P&gt;&lt;P&gt;Set pdfjob = Nothing&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that I have commented out some of the lines in the 'PrintReport' sub to simplify it to my needs.&lt;/P&gt;&lt;P&gt;This is attached to a button in a Qlik document but it didnt seem to do anything.&lt;/P&gt;&lt;P&gt;On going into properties and then editing the module and running 'test' fond where it was stopping.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;It calls&amp;nbsp; 'Print_PDF' but then I get &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;"ActiveX component can't create object: 'PDFCreator.clsPDFCreator'"&lt;/P&gt;&lt;P&gt;when it reaches &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;Set pdfjob = CreateObject("PDFCreator.clsPDFCreator")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;I found someone else having a similar problem which apparently was fixed when he set System access on.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, I had already set this.&lt;/P&gt;&lt;P&gt;I have set Requested Module Security to 'System Access' and Current Local Security to 'Allow System Access'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Document has been saved and re-opened but the same error persists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any pointers? Is there another setting somewhere that I have missed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Running Qlikview 11 SR11 64bit on a Windows Server 2012 R2 datacentre.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reading.&lt;/P&gt;&lt;P&gt;Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2015 12:23:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ActiveX-component-can-t-create-object-PDFCreator-clsPDFCreator/m-p/1010507#M342902</guid>
      <dc:creator />
      <dc:date>2015-11-17T12:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: ActiveX component can't create object: 'PDFCreator.clsPDFCreator'</title>
      <link>https://community.qlik.com/t5/QlikView/ActiveX-component-can-t-create-object-PDFCreator-clsPDFCreator/m-p/1010508#M342903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Success. &lt;/P&gt;&lt;P&gt;I discovered .NET framework was not enabled on the server!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I realized this after de-installing PDFCreator and attempting to install V1.6&lt;/P&gt;&lt;P&gt;This then came up with the error whilst trying to install.&lt;/P&gt;&lt;P&gt;Shame the new version didnt tell me that &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now all I have to do is figure out how to email the output out to people automatically &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps anyone.&lt;/P&gt;&lt;P&gt;Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2015 15:23:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ActiveX-component-can-t-create-object-PDFCreator-clsPDFCreator/m-p/1010508#M342903</guid>
      <dc:creator />
      <dc:date>2015-11-17T15:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: ActiveX component can't create object: 'PDFCreator.clsPDFCreator'</title>
      <link>https://community.qlik.com/t5/QlikView/ActiveX-component-can-t-create-object-PDFCreator-clsPDFCreator/m-p/1010509#M342904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Porter&lt;/P&gt;&lt;P&gt;Am facing similar error as you. Can i know how to enable the .Net framework?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 07:54:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ActiveX-component-can-t-create-object-PDFCreator-clsPDFCreator/m-p/1010509#M342904</guid>
      <dc:creator />
      <dc:date>2016-12-14T07:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: ActiveX component can't create object: 'PDFCreator.clsPDFCreator'</title>
      <link>https://community.qlik.com/t5/QlikView/ActiveX-component-can-t-create-object-PDFCreator-clsPDFCreator/m-p/1010510#M342905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;By Enable, I meant installed. &lt;/P&gt;&lt;P&gt;You can download it from the Microsoft website for free.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 16:03:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ActiveX-component-can-t-create-object-PDFCreator-clsPDFCreator/m-p/1010510#M342905</guid>
      <dc:creator />
      <dc:date>2016-12-14T16:03:09Z</dc:date>
    </item>
  </channel>
</rss>

