<?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 Macro to export AND mail report as PDF in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-to-export-AND-mail-report-as-PDF/m-p/240112#M90669</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all, is BullzipPDF installed ?&lt;/P&gt;&lt;P&gt;Second : Is it a 32- or 64-bit machine ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Dec 2011 05:57:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-12-29T05:57:11Z</dc:date>
    <item>
      <title>Macro to export AND mail report as PDF</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-AND-mail-report-as-PDF/m-p/240107#M90664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;2 days... that's what took me to get it right !! Here's how I did it :&lt;/P&gt;&lt;P&gt;1. Install Bullzip PDF Printer (I tried CutePDF, PDF X-change, PdfCreator,.. bullzip is the only one that works)&lt;/P&gt;&lt;P&gt;2. Macro :&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;Sub Dagrapport&lt;BR /&gt;vReport = "&lt;B&gt;QVreportname&lt;/B&gt;" 'Set report&lt;BR /&gt;vName = "&lt;B&gt;reportname&lt;/B&gt;" 'Name of output pdf&lt;BR /&gt;ActiveDocument.PrintReport(vReport), "Bullzip PDF Printer", false 'Printreport&lt;BR /&gt;reportFile = "&lt;B&gt;reportpath&lt;/B&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;B&gt;IP Mailserver&lt;/B&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("http://schemas.microsoft.com/cdo/configuration/sendusing") = cdoSendUsingPort&lt;BR /&gt; .Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = SMTPServer&lt;BR /&gt; .Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = cdoAnonymous&lt;BR /&gt; .Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = SMTPPort&lt;BR /&gt; .Item("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = False&lt;BR /&gt; .Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = SMTPTimeout&lt;BR /&gt; .Update&lt;BR /&gt;'---------------------------------------------------------------------&lt;BR /&gt;End With&lt;BR /&gt;objEmail.To = "&lt;B&gt;to emailaddress&lt;/B&gt;" 'Email Recipient&lt;BR /&gt;objEmail.From = "&lt;B&gt;from emailaddress&lt;/B&gt;" 'Email Sender&lt;BR /&gt;objEmail.Subject = "&lt;B&gt;emailsubject&lt;/B&gt;" ' Subject&lt;BR /&gt;objEmail.TextBody = "&lt;B&gt;emailbody&lt;/B&gt;" 'Text Body&lt;BR /&gt;objEmail.AddAttachment "&lt;B&gt;link to file&lt;/B&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;I don't know how to post code in colour...&lt;BR /&gt;&lt;B&gt;But it WORKS !!!!&lt;/B&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;My next step :&lt;/P&gt;&lt;P&gt;Make it work, so I have nothing to do anymore ! (I think I will use JIT and the commandline to open the QVW and execute the macro)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Oct 2010 13:37:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-AND-mail-report-as-PDF/m-p/240107#M90664</guid>
      <dc:creator />
      <dc:date>2010-10-15T13:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to export AND mail report as PDF</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-AND-mail-report-as-PDF/m-p/240108#M90665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Very good work,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to ask you, how can i change the output file name into a variable values taht takes two or three fields,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var=field1&amp;amp;field2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want this file name : var.pdf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you help me ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2011 13:31:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-AND-mail-report-as-PDF/m-p/240108#M90665</guid>
      <dc:creator>djallelsadki</dc:creator>
      <dc:date>2011-05-09T13:31:51Z</dc:date>
    </item>
    <item>
      <title>Macro to export AND mail report as PDF</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-AND-mail-report-as-PDF/m-p/240109#M90666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jochenandries,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was eagerly searching for Exporting the QVW file into PDF. And finally found it:) Thanks for making it.&lt;/P&gt;&lt;P&gt;But I need to revisit the code and make it suitable for my requirement. I want to ask one thing.&amp;nbsp; If this script is written in Edit module. How we can trigger this by an external event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;My requirement:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;1. Report should get refreshed in Qlikview enterprise mangement console (QEMC)&lt;/P&gt;&lt;P&gt;2. Export the QV sheets to a single PDF file.&lt;/P&gt;&lt;P&gt;3. Send the PDF file as an attachment to the receipents list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Manual run of the macro will export and send the QV report output in PDF, But It has to be triggered automatically once the QV report is refreshed. How can we acheive this ?? Could you please throw some light on this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 11:43:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-AND-mail-report-as-PDF/m-p/240109#M90666</guid>
      <dc:creator />
      <dc:date>2011-10-27T11:43:00Z</dc:date>
    </item>
    <item>
      <title>Macro to export AND mail report as PDF</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-AND-mail-report-as-PDF/m-p/240110#M90667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't use the QEMC...&lt;/P&gt;&lt;P&gt;I have it running to update the QV-database-files, but I don't use for my apps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I do :&lt;/P&gt;&lt;P&gt;In JIT (a task scheduler) I programmed a schedule to open the QlikView-file and execute 1 or more macro's at opening.&lt;/P&gt;&lt;P&gt;In the macro he reloads the document, makes the PDF's, mail them around, saves the document and closes QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's a dirty solution, but it works, and it's cheap !!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2011 15:58:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-AND-mail-report-as-PDF/m-p/240110#M90667</guid>
      <dc:creator />
      <dc:date>2011-12-08T15:58:49Z</dc:date>
    </item>
    <item>
      <title>Macro to export AND mail report as PDF</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-AND-mail-report-as-PDF/m-p/240111#M90668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am getting error &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ActiveX component can't create object: 'Bullzip.PDFPrinterSettings' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;what is the reason &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;please help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;Regards &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;Pramod Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2011 04:41:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-AND-mail-report-as-PDF/m-p/240111#M90668</guid>
      <dc:creator />
      <dc:date>2011-12-29T04:41:02Z</dc:date>
    </item>
    <item>
      <title>Macro to export AND mail report as PDF</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-AND-mail-report-as-PDF/m-p/240112#M90669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all, is BullzipPDF installed ?&lt;/P&gt;&lt;P&gt;Second : Is it a 32- or 64-bit machine ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2011 05:57:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-AND-mail-report-as-PDF/m-p/240112#M90669</guid>
      <dc:creator />
      <dc:date>2011-12-29T05:57:11Z</dc:date>
    </item>
    <item>
      <title>Macro to export AND mail report as PDF</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-AND-mail-report-as-PDF/m-p/240113#M90670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BullzipPDF is already installed &lt;/P&gt;&lt;P&gt;it is 32 bit machine &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2011 07:14:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-AND-mail-report-as-PDF/m-p/240113#M90670</guid>
      <dc:creator />
      <dc:date>2011-12-29T07:14:57Z</dc:date>
    </item>
    <item>
      <title>Macro to export AND mail report as PDF</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-AND-mail-report-as-PDF/m-p/240114#M90671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; On the left, are the security settings set to SYSTEM ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2011 07:23:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-AND-mail-report-as-PDF/m-p/240114#M90671</guid>
      <dc:creator />
      <dc:date>2011-12-29T07:23:21Z</dc:date>
    </item>
    <item>
      <title>Macro to export AND mail report as PDF</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-AND-mail-report-as-PDF/m-p/240115#M90672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; thanks jochenandres &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now , its working &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pramod Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2011 08:26:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-AND-mail-report-as-PDF/m-p/240115#M90672</guid>
      <dc:creator />
      <dc:date>2011-12-29T08:26:09Z</dc:date>
    </item>
    <item>
      <title>Macro to export AND mail report as PDF</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-AND-mail-report-as-PDF/m-p/240116#M90673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; You're welcome &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2011 08:27:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-AND-mail-report-as-PDF/m-p/240116#M90673</guid>
      <dc:creator />
      <dc:date>2011-12-29T08:27:11Z</dc:date>
    </item>
    <item>
      <title>Macro to export AND mail report as PDF</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-AND-mail-report-as-PDF/m-p/240117#M90674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;first of all thanks for your post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying that but the macro stops at the command "set obj = CreateObject("Bullzip.PDFPrinterSettings")" with the message "ActiveX component can't create object: 'Bullzip.PDFPrinterSettings'". My security level is set on "Allow system access", the machine is a Win2008R2 64bit. &lt;/P&gt;&lt;P&gt;Whyever the pdf-file nevertheless gets created (which doesn't help when the macro stops &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; ), even though with the default name and not the defined one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you give me a hint?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2012 11:30:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-AND-mail-report-as-PDF/m-p/240117#M90674</guid>
      <dc:creator />
      <dc:date>2012-01-27T11:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to export AND mail report as PDF</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-AND-mail-report-as-PDF/m-p/240118#M90675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Em Vau&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm havng a similar issue on WIn Server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone got any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 12:12:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-AND-mail-report-as-PDF/m-p/240118#M90675</guid>
      <dc:creator />
      <dc:date>2012-02-09T12:12:41Z</dc:date>
    </item>
    <item>
      <title>Macro to export AND mail report as PDF</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-AND-mail-report-as-PDF/m-p/240119#M90676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, i've got the same problem, the macro stops at the command "set obj = CreateObject("Bullzip.PDFPrinterSettings")" with the message "ActiveX component can't create object: 'Bullzip.PDFPrinterSettings'". My security level is set on "Allow system access", the machine is a Win7 64bit.&lt;/P&gt;&lt;P&gt;Thanks for your help !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2012 13:44:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-AND-mail-report-as-PDF/m-p/240119#M90676</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-15T13:44:02Z</dc:date>
    </item>
    <item>
      <title>Macro to export AND mail report as PDF</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-AND-mail-report-as-PDF/m-p/240120#M90677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry that it took me that long to answer. QV has indeed some issues with printing pdf on 64bit. a colleague of mine found a solution, based on previous knowledge from the community and some new combinations.&lt;/P&gt;&lt;P&gt;Shortly: it works with the OLD version of the pdfprinter which qliktech offers for download.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before the whole printing starts:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set WSHNetwork = CreateObject("WScript.Network")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WSHNetwork.SetDefaultPrinter "QlikViewPDF"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and later just use this function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function printReportPDF(reportID, pdfOutputFile)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set WSHShell = CreateObject("WScript.Shell")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WSHShell.RegWrite "HKCU\Software\QlikViewPDF\OutputFile", pdfOutputFile, "REG_SZ"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WSHShell.RegWrite "HKCU\Software\QlikViewPDF\BypassSaveAs", "1", "REG_SZ"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.PrintDocReport reportID &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set WSHShell = nothing&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;end function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's it. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; Just remember to&amp;nbsp; use the OOOOOOLD Qlikview PDF Printer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2012 13:54:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-AND-mail-report-as-PDF/m-p/240120#M90677</guid>
      <dc:creator />
      <dc:date>2012-02-15T13:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to export AND mail report as PDF</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-AND-mail-report-as-PDF/m-p/240121#M90678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Here we go... that's the printer that works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2012 14:00:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-AND-mail-report-as-PDF/m-p/240121#M90678</guid>
      <dc:creator />
      <dc:date>2012-02-15T14:00:44Z</dc:date>
    </item>
    <item>
      <title>Macro to export AND mail report as PDF</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-AND-mail-report-as-PDF/m-p/240122#M90679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So good !! Works Perfect.. Thanks to all.&lt;/P&gt;&lt;P&gt;Here is my code for those who need....:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub Dagrapport&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Periode = ActiveDocument.GetVariable("vMoisSelection").GetContent.String&lt;/P&gt;&lt;P&gt;Set WSHNetwork = CreateObject("WScript.Network")&lt;/P&gt;&lt;P&gt;WSHNetwork.SetDefaultPrinter "QlikViewPDF"&lt;/P&gt;&lt;P&gt;vReport = "RP01" 'Set report&lt;/P&gt;&lt;P&gt;vName = "Expenses Per Department - "&amp;amp; Periode 'Name of output pdf&lt;/P&gt;&lt;P&gt;ActiveDocument.PrintReport(vReport), "QlikViewPDF", false 'Printreport&lt;/P&gt;&lt;P&gt;reportFile = "c:\temp\" &amp;amp; vName &amp;amp;".pdf" 'Setting outputname&lt;/P&gt;&lt;P&gt;printReportPDF vReport,reportFile&lt;/P&gt;&lt;P&gt;ActiveDocument.GetApplication.Sleep 5000&lt;/P&gt;&lt;P&gt;zendDagrapport reportFile&lt;/P&gt;&lt;P&gt;End sub&lt;/P&gt;&lt;P&gt;'===========================================================================&lt;/P&gt;&lt;P&gt;FUNCTION printReportPDF(reportID, pdfOutputFile)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set WSHShell = CreateObject("WScript.Shell")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WSHShell.RegWrite "HKCU\Software\QlikViewPDF\OutputFile", pdfOutputFile, "REG_SZ"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WSHShell.RegWrite "HKCU\Software\QlikViewPDF\BypassSaveAs", "1", "REG_SZ"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.PrintDocReport reportID &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set WSHShell = nothing&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;END FUNCTION&lt;/P&gt;&lt;P&gt;'===========================================================================&lt;/P&gt;&lt;P&gt;function zendDagrapport(PDFOutputFile)&lt;/P&gt;&lt;P&gt;Dim objEmail&lt;/P&gt;&lt;P&gt;Const cdoSendUsingPort = 2 ' Send the message using SMTP&lt;/P&gt;&lt;P&gt;Const cdoAnonymous = 0 'Do not authenticate&lt;/P&gt;&lt;P&gt;Const cdoBasic = 1 'basic (clear-text) authentication&lt;/P&gt;&lt;P&gt;Const cdoNTLM = 2 'NTLM&lt;/P&gt;&lt;P&gt;SMTPServer = "IP mail Server"&lt;/P&gt;&lt;P&gt;Const SMTPPort = 25 ' Port number for SMTP&lt;/P&gt;&lt;P&gt;Const SMTPTimeout = 60 ' Timeout for SMTP in seconds&lt;/P&gt;&lt;P&gt;'Sending mail&lt;/P&gt;&lt;P&gt;Set objEmail = CreateObject("CDO.Message")&lt;/P&gt;&lt;P&gt;Set objConf = objEmail.Configuration&lt;/P&gt;&lt;P&gt;Set objFlds = objConf.Fields&lt;/P&gt;&lt;P&gt;With objFlds&lt;/P&gt;&lt;P&gt;'---------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;' SMTP server details&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;.Item("&lt;/SPAN&gt;&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;&lt;SPAN&gt;") = cdoSendUsingPort&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;.Item("&lt;/SPAN&gt;&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;&lt;SPAN&gt;") = SMTPServer&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;.Item("&lt;/SPAN&gt;&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;&lt;SPAN&gt;") = cdoAnonymous&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;.Item("&lt;/SPAN&gt;&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;&lt;SPAN&gt;") = SMTPPort&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;.Item("&lt;/SPAN&gt;&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;&lt;SPAN&gt;") = False&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;.Item("&lt;/SPAN&gt;&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;&lt;SPAN&gt;") = SMTPTimeout&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;.Update&lt;/P&gt;&lt;P&gt;'---------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;End With&lt;/P&gt;&lt;P&gt;MailResponsable = ActiveDocument.GetVariable("vResponsableDepartement").GetContent.String&lt;/P&gt;&lt;P&gt;objEmail.To = MailResponsable 'Email Recipient&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;objEmail.From = "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:qlikview@Company.fr"&gt;qlikview@Company.fr&lt;/A&gt;&lt;SPAN&gt;" 'Email Sender&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;objEmail.Subject = "Expenses Monthly Report" ' Subject&lt;/P&gt;&lt;P&gt;objEmail.TextBody = "Please find enclosed the Expenses Monthly Report for your Department " 'Text Body&lt;/P&gt;&lt;P&gt;objEmail.AddAttachment PDFOutputFile ' Attachement&lt;/P&gt;&lt;P&gt;objEmail.Send&lt;/P&gt;&lt;P&gt;Set objFlds = Nothing&lt;/P&gt;&lt;P&gt;Set objConf = Nothing&lt;/P&gt;&lt;P&gt;Set objEmail = Nothing&lt;/P&gt;&lt;P&gt;' msgbox ("Test Mail Sent")&lt;/P&gt;&lt;P&gt;end function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 10:08:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-AND-mail-report-as-PDF/m-p/240122#M90679</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-16T10:08:18Z</dc:date>
    </item>
    <item>
      <title>Macro to export AND mail report as PDF</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-AND-mail-report-as-PDF/m-p/240123#M90680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all thanks for the terrefic post! After implementing the script I ran into the following problem. Instead of mailing the reports automatically I want to give the users the possibility to choose a report and mail adress and hit a button to send the report. I've got this working fine within in the local client. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However when I use the Ajax client the pdf printer seems to be blocked (maybe because it pops up). The normal report printing function (in the top function bar) works fine. Did anybody implement this printing function with the use of a button or can anybody get it to work? Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 08:18:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-AND-mail-report-as-PDF/m-p/240123#M90680</guid>
      <dc:creator />
      <dc:date>2012-04-05T08:18:23Z</dc:date>
    </item>
    <item>
      <title>Macro to export AND mail report as PDF</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-AND-mail-report-as-PDF/m-p/240124#M90681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I've been trying do use this but i dont have the key "&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;HKCU\Software\QlikViewPDF\" &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;Using windows 2003 R2 64bit.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;Any idea? (I've downloaded the ooooold printer &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 14:59:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-AND-mail-report-as-PDF/m-p/240124#M90681</guid>
      <dc:creator />
      <dc:date>2012-05-22T14:59:09Z</dc:date>
    </item>
    <item>
      <title>Macro to export AND mail report as PDF</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-AND-mail-report-as-PDF/m-p/240125#M90682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/samson_t" id="jive-2388226642643032254849" style="background-color: #f9f9f9; font-size: 12px; color: #007fc0; font-weight: bold; font-family: Arial; text-align: center;"&gt;samson_t&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;can you give me a file of example?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm using Win7 64 bit and QVPdf ...but don't work it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;gda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2012 13:10:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-AND-mail-report-as-PDF/m-p/240125#M90682</guid>
      <dc:creator />
      <dc:date>2012-05-28T13:10:49Z</dc:date>
    </item>
    <item>
      <title>Macro to export AND mail report as PDF</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-AND-mail-report-as-PDF/m-p/240126#M90683</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;What kind of file do you want as example ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2012 12:15:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-AND-mail-report-as-PDF/m-p/240126#M90683</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-29T12:15:10Z</dc:date>
    </item>
  </channel>
</rss>

