<?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: PDF generation. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/PDF-generation/m-p/962488#M330198</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you contemplate on PDF Distributor?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Sep 2015 12:16:45 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2015-09-16T12:16:45Z</dc:date>
    <item>
      <title>PDF generation.</title>
      <link>https://community.qlik.com/t5/QlikView/PDF-generation/m-p/962487#M330197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have requirement to create the PDF of the&amp;nbsp; Qlikview Document&amp;nbsp; Loop it through a certain field and then email it to the set of user.&lt;/P&gt;&lt;P&gt;We have to do it through MAcro or nay other option but not NPrinitng..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have downloaded PDF creator .&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Did anybody have any experience with this Kind of requirement&lt;/STRONG&gt; . Any solution would be welcome&lt;/P&gt;&lt;P&gt;I have&amp;nbsp; searched the community and found the below code but this doesn't work . It doesn't do anything. Whne I click the button the Code just opens&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Sub PDF&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt; ActiveDocument.ClearAll&lt;BR /&gt;&amp;nbsp; Dim FieldName&lt;BR /&gt;&amp;nbsp; FieldName = "Month"&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; set mySelections = ActiveDocument.Fields(FieldName).GetPossibleValues(15)&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; Dim i&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; for i = 0 to mySelections.Count - 1&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; Dim FieldValue&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; FieldValue = mySelections.Item(i).text&lt;BR /&gt; &lt;BR /&gt; ActiveDocument.Fields(FieldName).Select FieldValue&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; Print_PDF FieldValue, "Document Report - 1", "RP01"&lt;BR /&gt; &lt;BR /&gt; Next&lt;BR /&gt; &lt;BR /&gt; End Sub&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; Sub Print_PDF(Month, ReportName, ReportId)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ' Designed for early bind, set reference to PDFCreator&lt;BR /&gt; Dim pdfjob&lt;BR /&gt; Dim sPDFName&lt;BR /&gt; Dim sPDFPath&lt;BR /&gt; &lt;BR /&gt; '/// Change the output file name here! ///&lt;BR /&gt; sPDFName = ReportName &amp;amp; " - " &amp;amp; FieldValue&lt;BR /&gt; sPDFPath = "C:\PDFReports"&lt;BR /&gt;&amp;nbsp; Set pdfjob = CreateObject("PDFCreator.clsPDFCreator")&lt;BR /&gt;&amp;nbsp; With pdfjob&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt; If .cStart("/NoProcessingAtStartup") = False Then&lt;BR /&gt; If .cStart("/NoProcessingAtStartup", True) = False Then&lt;BR /&gt; &lt;BR /&gt; Exit Sub &lt;BR /&gt; End if&lt;BR /&gt; .cVisible = True&lt;BR /&gt; End If&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; .cOption("UseAutosave") = 1&lt;BR /&gt; .cOption("UseAutosaveDirectory") = 1&lt;BR /&gt; .cOption("AutosaveDirectory") = sPDFPath&lt;BR /&gt; .cOption("AutosaveFilename") = sPDFName&lt;BR /&gt; .cOption("AutosaveFormat") = 0 ' 0 = PDF&lt;BR /&gt; .cClearCache&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; End With&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; ' Print the QlikView Report&lt;BR /&gt; ActiveDocument.PrintReport RP01, "PDFCreator"&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; 'Wait until the print job has entered the print queue&lt;BR /&gt; Do Until pdfjob.cCountOfPrintjobs = 1&lt;BR /&gt; ActiveDocument.GetApplication.Sleep 20&lt;BR /&gt; ' in VBScript use WScript.Sleep(20)&lt;BR /&gt; Loop&lt;BR /&gt; pdfjob.cPrinterStop = False&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; 'Wait until PDF creator is finished then release the objects&lt;BR /&gt; Do Until pdfjob.cCountOfPrintjobs = 0&lt;BR /&gt; ActiveDocument.GetApplication.Sleep 20&lt;BR /&gt; ' in VBScript use WScript.Sleep(20)&lt;BR /&gt; Loop&lt;BR /&gt; pdfjob.cClose&lt;BR /&gt; Set pdfjob = Nothing&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; End Sub&lt;BR /&gt; &lt;BR /&gt; ' ActiveDocument.PrintReport RP01, "PDFCreator"&lt;BR /&gt; &lt;BR /&gt; Thanks&lt;/P&gt;&lt;P&gt;Medha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2015 12:04:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/PDF-generation/m-p/962487#M330197</guid>
      <dc:creator />
      <dc:date>2015-09-16T12:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: PDF generation.</title>
      <link>https://community.qlik.com/t5/QlikView/PDF-generation/m-p/962488#M330198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you contemplate on PDF Distributor?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2015 12:16:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/PDF-generation/m-p/962488#M330198</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-09-16T12:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: PDF generation.</title>
      <link>https://community.qlik.com/t5/QlikView/PDF-generation/m-p/962489#M330199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't have PDF Distributor.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2015 12:23:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/PDF-generation/m-p/962489#M330199</guid>
      <dc:creator />
      <dc:date>2015-09-16T12:23:41Z</dc:date>
    </item>
  </channel>
</rss>

