<?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: How to create PDF through Macro in Qlikview 11 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-create-PDF-through-Macro-in-Qlikview-11/m-p/346718#M702534</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your Help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying with above code but i got the error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below is the image I have attached - : &lt;/P&gt;&lt;P&gt;Please let me know what is the issue ?&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;IMG __jive_id="38995" class="jive-image-thumbnail jive-image" onclick="" alt="MicroForPDFExport.png" src="https://community.qlik.com/legacyfs/online/38995_MicroForPDFExport.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Sanket K. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Apr 2013 11:42:55 GMT</pubDate>
    <dc:creator>sanketkhunte</dc:creator>
    <dc:date>2013-04-17T11:42:55Z</dc:date>
    <item>
      <title>How to create PDF through Macro in Qlikview 11</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-PDF-through-Macro-in-Qlikview-11/m-p/346714#M702530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want a macro to create PDF Reports. Please provide me the code and an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 08:00:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-PDF-through-Macro-in-Qlikview-11/m-p/346714#M702530</guid>
      <dc:creator>qv_jagan</dc:creator>
      <dc:date>2012-07-12T08:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to create PDF through Macro in Qlikview 11</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-PDF-through-Macro-in-Qlikview-11/m-p/346715#M702531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here you go:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/thread/13115"&gt;http://community.qlik.com/thread/13115&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 08:05:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-PDF-through-Macro-in-Qlikview-11/m-p/346715#M702531</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-12T08:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to create PDF through Macro in Qlikview 11</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-PDF-through-Macro-in-Qlikview-11/m-p/346716#M702532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much for your help.&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 09:01:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-PDF-through-Macro-in-Qlikview-11/m-p/346716#M702532</guid>
      <dc:creator>qv_jagan</dc:creator>
      <dc:date>2012-07-12T09:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to create PDF through Macro in Qlikview 11</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-PDF-through-Macro-in-Qlikview-11/m-p/346717#M702533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I found a solution for the issue. Thanks for your help Johannes Sunden.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;You need to download QlikviewPDF Set from Qlikview website download page.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Once after you install the exe file in you desktop.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Use to following code to export data as PDF.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Sub GWP_Macro4r_Email&lt;BR /&gt;&lt;BR /&gt;'...........PDF Export logic.............QlikViewPDF&lt;BR /&gt;&lt;BR /&gt;ActiveDocument.clearall&lt;BR /&gt;path="\\inmchn24\ChannelMIS\Centrlal MiS\Daily Reports\Automated Reports\"&lt;BR /&gt;'path="D:\Qlikview\Report\"&lt;BR /&gt;ActiveDocument.PrintDocReport ("RP01"),"QlikViewPDF", false&lt;BR /&gt;set rep = ActiveDocument.GetReport("RP01")&lt;BR /&gt;reportFile = path &amp;amp; "SRO_GWP_Dashboard"&amp;amp;".pdf"&lt;BR /&gt;printReportPDF(reportFile)&lt;BR /&gt;&lt;BR /&gt;ActiveDocument.GetApplication.Sleep 16000 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;End Sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Function printReportPDF(pdfOutputFile)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Set WSHShell = CreateObject("WScript.Shell")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;WSHShell.RegWrite "HKCU\Software\QlikViewPDF\OutputFile", pdfOutputFile, "REG_SZ"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;WSHShell.RegWrite "HKCU\Software\QlikViewPDF\BypassSaveAs", "1", "REG_SZ"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Set WSHShell = nothing&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;End function&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 09:09:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-PDF-through-Macro-in-Qlikview-11/m-p/346717#M702533</guid>
      <dc:creator>qv_jagan</dc:creator>
      <dc:date>2012-07-12T09:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to create PDF through Macro in Qlikview 11</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-PDF-through-Macro-in-Qlikview-11/m-p/346718#M702534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your Help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying with above code but i got the error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below is the image I have attached - : &lt;/P&gt;&lt;P&gt;Please let me know what is the issue ?&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;IMG __jive_id="38995" class="jive-image-thumbnail jive-image" onclick="" alt="MicroForPDFExport.png" src="https://community.qlik.com/legacyfs/online/38995_MicroForPDFExport.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Sanket K. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 11:42:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-PDF-through-Macro-in-Qlikview-11/m-p/346718#M702534</guid>
      <dc:creator>sanketkhunte</dc:creator>
      <dc:date>2013-04-17T11:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to create PDF through Macro in Qlikview 11</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-PDF-through-Macro-in-Qlikview-11/m-p/346719#M702535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp; qv_jagan. You want to use code or a third party tool to help you creat PDF files?&lt;/P&gt;&lt;P&gt;here are some code maybe useful:&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;Sub Dagrapport&lt;BR /&gt;vReport = "&lt;STRONG&gt;QVreportname&lt;/STRONG&gt;" 'Set report&lt;BR /&gt;vName = "&lt;STRONG&gt;reportname&lt;/STRONG&gt;" 'Name of output pdf&lt;BR /&gt;ActiveDocument.PrintReport(vReport), "Bullzip PDF Printer", false 'Printreport&lt;BR /&gt;reportFile = "&lt;STRONG&gt;reportpath&lt;/STRONG&gt;" &amp;amp; vName &amp;amp;".pdf" 'Setting outputname&lt;BR /&gt;MyPrintPDFWithBullZip(reportFile) 'Call pdf printer&lt;BR /&gt;ActiveDocument.GetApplication.Sleep 5000&lt;BR /&gt;zendDagrapport&lt;BR /&gt;End sub&lt;BR /&gt;FUNCTION MyPrintPDFWithBullZip (pdfOutputFile)&lt;BR /&gt;set obj = CreateObject("Bullzip.PDFPrinterSettings")&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;BR /&gt;END FUNCTION&lt;BR /&gt; '===========================================================================&lt;BR /&gt;'===========================================================================&lt;BR /&gt;function zendDagrapport()&lt;BR /&gt;Dim objEmail&lt;BR /&gt;Const cdoSendUsingPort = 2 ' Send the message using SMTP&lt;BR /&gt;Const cdoAnonymous = 0 'Do not authenticate&lt;BR /&gt;Const cdoBasic = 1 'basic (clear-text) authentication&lt;BR /&gt;Const cdoNTLM = 2 'NTLM&lt;BR /&gt;SMTPServer = "&lt;STRONG&gt;IP Mailserver&lt;/STRONG&gt;"&lt;BR /&gt;Const SMTPPort = 25 ' Port number for SMTP&lt;BR /&gt;Const SMTPTimeout = 60 ' Timeout for SMTP in seconds&lt;BR /&gt;'Sending mail&lt;BR /&gt;Set objEmail = CreateObject("CDO.Message")&lt;BR /&gt;Set objConf = objEmail.Configuration&lt;BR /&gt;Set objFlds = objConf.Fields&lt;BR /&gt;With objFlds&lt;BR /&gt;'---------------------------------------------------------------------&lt;BR /&gt; ' SMTP server details&lt;BR /&gt; .Item("&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/sendusing"&gt;http://schemas.microsoft.com/cdo/configuration/sendusing&lt;/A&gt;") = cdoSendUsingPort&lt;BR /&gt; .Item("&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/smtpserver"&gt;http://schemas.microsoft.com/cdo/configuration/smtpserver&lt;/A&gt;") = SMTPServer&lt;BR /&gt; .Item("&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/smtpauthenticate"&gt;http://schemas.microsoft.com/cdo/configuration/smtpauthenticate&lt;/A&gt;") = cdoAnonymous&lt;BR /&gt; .Item("&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/smtpserverport"&gt;http://schemas.microsoft.com/cdo/configuration/smtpserverport&lt;/A&gt;") = SMTPPort&lt;BR /&gt; .Item("&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/smtpusessl"&gt;http://schemas.microsoft.com/cdo/configuration/smtpusessl&lt;/A&gt;") = False&lt;BR /&gt; .Item("&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout"&gt;http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout&lt;/A&gt;") = SMTPTimeout&lt;BR /&gt; .Update&lt;BR /&gt;'---------------------------------------------------------------------&lt;BR /&gt;End With&lt;BR /&gt;objEmail.To = "&lt;STRONG&gt;to emailaddress&lt;/STRONG&gt;" 'Email Recipient&lt;BR /&gt;objEmail.From = "&lt;STRONG&gt;from emailaddress&lt;/STRONG&gt;" 'Email Sender&lt;BR /&gt;objEmail.Subject = "&lt;STRONG&gt;emailsubject&lt;/STRONG&gt;" ' Subject&lt;BR /&gt;objEmail.TextBody = "&lt;STRONG&gt;emailbody&lt;/STRONG&gt;" 'Text Body&lt;BR /&gt;objEmail.AddAttachment "&lt;STRONG&gt;link to file&lt;/STRONG&gt;" ' Attachement&lt;BR /&gt;objEmail.Send&lt;BR /&gt;Set objFlds = Nothing&lt;BR /&gt;Set objConf = Nothing&lt;BR /&gt;Set objEmail = Nothing&lt;BR /&gt;' msgbox ("Test Mail Sent")&lt;BR /&gt;end function&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;As for myself, I used to &lt;A href="http://www.yiigo.com/net-document-image-plugin/pdf-plugin/"&gt;creat PDF&lt;/A&gt; with the help of a PDF SDK.&lt;/P&gt;&lt;P&gt;It is just one of many but I do appreciate its simple way of processing.&lt;/P&gt;&lt;P&gt;Besides, this site gives a lot of choices for &lt;A href="http://www.yiigo.com/net-document-image-sdk/processing-support.shtml"&gt;document imaging processing&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Even though I only tried its free trial package to generate PDFs and didn′t check the cost and licensing conditions, it works great for me.&lt;/P&gt;&lt;P&gt;Share with you. Good luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Arron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 07:28:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-PDF-through-Macro-in-Qlikview-11/m-p/346719#M702535</guid>
      <dc:creator />
      <dc:date>2013-07-09T07:28:40Z</dc:date>
    </item>
  </channel>
</rss>

