<?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: Issue in PDF Creation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Issue-in-PDF-Creation/m-p/604453#M223377</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;New file is created but Dashboard2.pdf contains data of Dashboard1.pdf.&lt;BR /&gt;this is main issue....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Feb 2014 07:40:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-02-19T07:40:54Z</dc:date>
    <item>
      <title>Issue in PDF Creation</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-PDF-Creation/m-p/604451#M223375</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;I am using the below macro code for pdf generation of Dashboard1.qvw:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub PrintReports&lt;BR /&gt;&amp;nbsp; 'This macro can be used to print pdf reports into the directory structure using bullzip pdf&lt;/P&gt;&lt;P&gt;ActiveDocument.GetApplication.Sleep 2000&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ActiveDocument.PrintReport "RP01", "Bullzip PDF Printer"&lt;BR /&gt;&amp;nbsp; ActiveDocument.GetApplication.Sleep 10000&lt;/P&gt;&lt;P&gt;MyPrintPDFWithBullZip "C:\Qlikview\Dashboard1.pdf"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ActiveDocument.GetApplication.Sleep 10000&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;FUNCTION MyPrintPDFWithQlikViewPDF (pdfOutputFile)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set WSHShell = CreateObject("WScript.Shell")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WSHShell.RegWrite "HKCU\Software\QlikViewPDF\OutputFile", pdfOutputFile, "REG_SZ"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WSHShell.RegWrite "HKCU\Software\QlikViewPDF\BypassSaveAs", "1", "REG_SZ"&lt;/P&gt;&lt;P&gt;END FUNCTION&lt;/P&gt;&lt;P&gt;FUNCTION MyPrintPDFWithBullZip (pdfOutputFile)&lt;/P&gt;&lt;P&gt;'need to init the printername, otherwise the assignment of the values will fail&lt;BR /&gt;Set obj_printer_util = CreateObject("Bullzip.PDFUtil")&lt;BR /&gt;printername = obj_printer_util.defaultprintername&lt;/P&gt;&lt;P&gt;'init the BullZip preferences object&lt;BR /&gt;set obj = CreateObject("Bullzip.PDFSettings") 'For 32Bit System u use PDFPrinterSettings&lt;/P&gt;&lt;P&gt;obj.printername = obj_printer_util.defaultprintername 'assign the printername&lt;BR /&gt;obj.SetValue "Output" , pdfOutputFile&lt;BR /&gt;obj.SetValue "ConfirmOverwrite", "no"&lt;BR /&gt;obj.SetValue "ShowSaveAS", "never"&lt;BR /&gt;obj.SetValue "ShowSettings", "never"&lt;BR /&gt;obj.SetValue "ShowPDF", "no"&lt;BR /&gt;obj.SetValue "RememberLastFileName", "no"&lt;BR /&gt;obj.SetValue "RememberLastFolderName", "no"&lt;BR /&gt;obj.SetValue "ShowProgressFinished", "no"&lt;BR /&gt;obj.SetValue "ShowProgress", "no"&lt;BR /&gt;obj.WriteSettings True&lt;/P&gt;&lt;P&gt;END FUNCTION&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and pdf file is generated from this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used same code for pdf generation of Dashboard2.&lt;/P&gt;&lt;P&gt;just i Change the file name "C:\Qlikview\Dashboard2.pdf"&lt;/P&gt;&lt;P&gt;but when i run the Dashboard2.qvw macro for pdf generation after Dashboard1.qvw then it will create the different file named dashboard2.pdf but having same details/data of dashboard1.pdf or sometimes this happens that dashboard2.pdf is not created and data is updated in dashboard1.qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone face this issue ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help to resolve.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 06:54:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-PDF-Creation/m-p/604451#M223375</guid>
      <dc:creator />
      <dc:date>2014-02-19T06:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in PDF Creation</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-PDF-Creation/m-p/604452#M223376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri,verdana,arial,sans-serif;"&gt;You have changed the filename as dashboard2.pdf , obviously it will create a new file. Then where exactly the issue? explain it&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 07:32:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-PDF-Creation/m-p/604452#M223376</guid>
      <dc:creator>sivarajs</dc:creator>
      <dc:date>2014-02-19T07:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in PDF Creation</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-PDF-Creation/m-p/604453#M223377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;New file is created but Dashboard2.pdf contains data of Dashboard1.pdf.&lt;BR /&gt;this is main issue....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 07:40:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-PDF-Creation/m-p/604453#M223377</guid>
      <dc:creator />
      <dc:date>2014-02-19T07:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Issue in PDF Creation</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-PDF-Creation/m-p/604454#M223378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri,verdana,arial,sans-serif;"&gt;Guess you are using same report Id for two files.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;ActiveDocument.PrintReport &lt;SPAN style="color: #ff0000;"&gt;"RP01"&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;,&lt;/SPAN&gt; "Bullzip PDF Printer"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;have you created two different qvw file with same data? &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 07:51:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-PDF-Creation/m-p/604454#M223378</guid>
      <dc:creator>sivarajs</dc:creator>
      <dc:date>2014-02-19T07:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in PDF Creation</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-PDF-Creation/m-p/604455#M223379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Two different QVW's as well as the two QVW(reports) is having totaly different data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 07:58:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-PDF-Creation/m-p/604455#M223379</guid>
      <dc:creator />
      <dc:date>2014-02-19T07:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Issue in PDF Creation</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-PDF-Creation/m-p/604456#M223380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri,verdana,arial,sans-serif;"&gt;Check the values of report in dashboard2&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 08:39:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-PDF-Creation/m-p/604456#M223380</guid>
      <dc:creator>sivarajs</dc:creator>
      <dc:date>2014-02-19T08:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Issue in PDF Creation</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-PDF-Creation/m-p/604457#M223381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try in this way:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ActiveDocument.GetApplication.Sleep 2000&lt;BR /&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;MyPrintPDFWithBullZip "C:\Qlikview\Dashboard1.pdf"&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; ActiveDocument.GetApplication.Sleep 10000&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="line-height: 1.5em; color: #3d3d3d; font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; ActiveDocument.PrintReport "RP01", "Bullzip PDF Printer"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;ActiveDocument.GetApplication.Sleep 10000&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;swapping the two instances should work !!&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;also I&amp;nbsp; suggest to add init into the bullzif function like this:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;set obj = CreateObject("Bullzip.PDFSettings") 'For 32Bit System u use PDFPrinterSettings&lt;BR /&gt; obj.Init&lt;BR /&gt; obj.printername = obj_printer_util.defaultprintername 'assign the printername &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;let me know if this solve your issue&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Matteo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2014 13:21:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-PDF-Creation/m-p/604457#M223381</guid>
      <dc:creator />
      <dc:date>2014-04-18T13:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in PDF Creation</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-PDF-Creation/m-p/604458#M223382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the name of your report in your app2.&lt;/P&gt;&lt;P&gt;The code says the name should be RP01 as for the app1.&lt;/P&gt;&lt;P&gt;If not the same, change the code below&lt;/P&gt;&lt;P&gt; ActiveDocument.PrintReport "RP01" to&amp;nbsp; ActiveDocument.PrintReport "XXXX"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2014 13:25:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-PDF-Creation/m-p/604458#M223382</guid>
      <dc:creator />
      <dc:date>2014-04-18T13:25:19Z</dc:date>
    </item>
  </channel>
</rss>

