<?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 Export to PDF - Doesn't save PDF in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Export-to-PDF-Doesn-t-save-PDF/m-p/146892#M505413</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael, thanks for the prompt response. I tried your code and the suggestion from cfrench. Both scripts run but no file gets saved into the C:\TempPDF directory.&lt;/P&gt;&lt;P&gt;Could it be QlikviewPDF printer settings or something? I have set the default printer to QlikviewPDF and run the script. The printer shows that it is printing a file, but no file in the C:\TempPDF directory.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Jun 2009 01:50:22 GMT</pubDate>
    <dc:creator>wandapec</dc:creator>
    <dc:date>2009-06-16T01:50:22Z</dc:date>
    <item>
      <title>Export to PDF - Doesn't save PDF</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-PDF-Doesn-t-save-PDF/m-p/146889#M505410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there, I have been at this for days. I need to save a report to a specified file etc. The simplest script I can get from other numerous examples is this -&lt;/P&gt;&lt;P&gt;&lt;I&gt;sub printRP01&lt;BR /&gt; printReportPDF "C:\TestPDF\myreport.pdf"&lt;BR /&gt; ActiveDocument.PrintReport "RP01", "QlikviewPDF", false&lt;BR /&gt; end sub&lt;BR /&gt;&lt;BR /&gt; Function printReportPDF(pdfOutputFile)&lt;BR /&gt; Set WSHShell = CreateObject("WScript.Shell")&lt;BR /&gt; WSHShell.RegWrite "HKCU\Software\QlikviewPDF\OutputFile", pdfOutputFile, "REG_SZ"&lt;BR /&gt; WSHShell.RegWrite "HKCU\Software\QlikviewPDF\BypassSaveAs", "1", "REG_SZ"&lt;BR /&gt; Set WSHShell = nothing&lt;BR /&gt; End function&lt;/I&gt;&lt;/P&gt;&lt;P&gt;I have tried all sorts of variations of this but it just won't save RP01 to myreports.pdf in C:\TestPDF.&lt;/P&gt;&lt;P&gt;Please help?&lt;/P&gt;&lt;P&gt;Thanks Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2009 00:38:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-PDF-Doesn-t-save-PDF/m-p/146889#M505410</guid>
      <dc:creator>wandapec</dc:creator>
      <dc:date>2009-06-16T00:38:08Z</dc:date>
    </item>
    <item>
      <title>Export to PDF - Doesn't save PDF</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-PDF-Doesn-t-save-PDF/m-p/146890#M505411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Steve I had to put a sleep call right before the call to ActiveDocumentPrintReport. Try that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2009 00:49:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-PDF-Doesn-t-save-PDF/m-p/146890#M505411</guid>
      <dc:creator />
      <dc:date>2009-06-16T00:49:37Z</dc:date>
    </item>
    <item>
      <title>Export to PDF - Doesn't save PDF</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-PDF-Doesn-t-save-PDF/m-p/146891#M505412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Steve,&lt;BR /&gt;This works for me:&lt;BR /&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;sub PrintReport&lt;BR /&gt; Set WSHShell = CreateObject("WScript.Shell")&lt;BR /&gt; fln = "C:\TestPDF\myreport.pdf"&lt;BR /&gt; RegKey = "HKEY_CURRENT_USER\Software\QlikViewPDF\"&lt;BR /&gt; WSHShell.RegWrite RegKey &amp;amp; "BypassSaveAs", 1&lt;BR /&gt; WSHShell.RegWrite RegKey &amp;amp; "OutputFile", fln&lt;BR /&gt; ActiveDocument.GetApplication.Sleep 2000&lt;BR /&gt; ActiveDocument.PrintDocReport "RP01", "QlikViewPDF"&lt;BR /&gt; ActiveDocument.GetApplication.Sleep 2000&lt;BR /&gt; WSHShell.RegWrite RegKey &amp;amp; "BypassSaveAs", 0&lt;BR /&gt; WSHShell.RegWrite RegKey &amp;amp; "OutputFile", ""&lt;BR /&gt; Set WSHShell = nothing&lt;BR /&gt;end sub&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2009 00:54:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-PDF-Doesn-t-save-PDF/m-p/146891#M505412</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-16T00:54:59Z</dc:date>
    </item>
    <item>
      <title>Export to PDF - Doesn't save PDF</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-PDF-Doesn-t-save-PDF/m-p/146892#M505413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael, thanks for the prompt response. I tried your code and the suggestion from cfrench. Both scripts run but no file gets saved into the C:\TempPDF directory.&lt;/P&gt;&lt;P&gt;Could it be QlikviewPDF printer settings or something? I have set the default printer to QlikviewPDF and run the script. The printer shows that it is printing a file, but no file in the C:\TempPDF directory.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2009 01:50:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-PDF-Doesn-t-save-PDF/m-p/146892#M505413</guid>
      <dc:creator>wandapec</dc:creator>
      <dc:date>2009-06-16T01:50:22Z</dc:date>
    </item>
    <item>
      <title>Export to PDF - Doesn't save PDF</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-PDF-Doesn-t-save-PDF/m-p/146893#M505414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Steve&lt;BR /&gt;Check if the directory exists. QV will not create it if it doesn't exist. Next, chck the permissions. Maybe you cannot write there.&lt;BR /&gt;What happens if you try to save as PDF manually, without macro?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2009 02:28:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-PDF-Doesn-t-save-PDF/m-p/146893#M505414</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-16T02:28:10Z</dc:date>
    </item>
    <item>
      <title>Export to PDF - Doesn't save PDF</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-PDF-Doesn-t-save-PDF/m-p/146894#M505415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The directory exists with full read/write permissions. I also tried changing the directory. When I Print to PDF, it runs as usual, dialog box opens, choose print and it asks for a location and file name. It's the strangest thing. I paused the printing and looked in the files properties but couldn't find what or where it was printing.&lt;/P&gt;&lt;P&gt;One thing I haven't mentioned is that I am running Windows 7. I am going to try it on Windows XP tomorrow. Will let you know the outcome.&lt;/P&gt;&lt;P&gt;Thanks for your trouble.&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2009 03:05:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-PDF-Doesn-t-save-PDF/m-p/146894#M505415</guid>
      <dc:creator>wandapec</dc:creator>
      <dc:date>2009-06-16T03:05:59Z</dc:date>
    </item>
    <item>
      <title>Export to PDF - Doesn't save PDF</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-PDF-Doesn-t-save-PDF/m-p/146895#M505416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;I couldn't wait for tomorrow. I ran it on a laptop with Windows XP and it runs perfectly! There must be a setting in Windows 7 somewhere that is preventing the file from saving. I am going to get one of my technical boffins to set me with XP using virtual machine or some other plan.&lt;/P&gt;&lt;P&gt;It has been a long few days! &lt;IMG alt="Tongue Tied" src="http://community.qlik.com/emoticons/emotion-7.gif" /&gt;&lt;/P&gt;&lt;P&gt;Thanks once again.&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2009 03:22:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-PDF-Doesn-t-save-PDF/m-p/146895#M505416</guid>
      <dc:creator>wandapec</dc:creator>
      <dc:date>2009-06-16T03:22:05Z</dc:date>
    </item>
    <item>
      <title>Export to PDF - Doesn't save PDF</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-PDF-Doesn-t-save-PDF/m-p/146896#M505417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Steve,&lt;BR /&gt;I was thinking of upgrading my home PC. You certainly helped my to choose OS - I'm staying with XP for now. &lt;IMG alt="Geeked" src="http://community.qlik.com/emoticons/emotion-15.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2009 03:40:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-PDF-Doesn-t-save-PDF/m-p/146896#M505417</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-16T03:40:07Z</dc:date>
    </item>
    <item>
      <title>Export to PDF - Doesn't save PDF</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-PDF-Doesn-t-save-PDF/m-p/146897#M505418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Windows Vista and Windows 7 there is restriction in creating Files in C: dirve even if you are an administrator.&lt;/P&gt;&lt;P&gt;In order to save the file in C: drive you need to enable the UAC control. It will be a tick mark in vista and Slide bar in WIndows 7.&lt;/P&gt;&lt;P&gt;Once you untick the UAC (User Access Control) you will be able to save the file in C: drive. YOu will find the UAC in Control Panel---User Access.&lt;/P&gt;&lt;P&gt;And thanks for the PDf code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 May 2010 08:22:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-PDF-Doesn-t-save-PDF/m-p/146897#M505418</guid>
      <dc:creator>deepakk</dc:creator>
      <dc:date>2010-05-06T08:22:46Z</dc:date>
    </item>
    <item>
      <title>Export to PDF - Doesn't save PDF</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-PDF-Doesn-t-save-PDF/m-p/146898#M505419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;Thanks for sharing the code. I tried it and it fails to save the PDF. It prints it succesfully though. I am working on XP.&lt;/P&gt;&lt;P&gt;I have created the directory and given all the necessary permissions.&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 May 2010 17:17:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-PDF-Doesn-t-save-PDF/m-p/146898#M505419</guid>
      <dc:creator />
      <dc:date>2010-05-12T17:17:51Z</dc:date>
    </item>
    <item>
      <title>Export to PDF - Doesn't save PDF</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-PDF-Doesn-t-save-PDF/m-p/146899#M505420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have the same exactly the same problem. The PDFdriver seems to print, but the file is not saved in the any director.&lt;/P&gt;&lt;P&gt;I use Vista full upgraded. Sometimes ago I used the same file on my computer and it worked.&lt;/P&gt;&lt;P&gt;Also, I have tried the file on other computers (Win Serv 2008 and XP) and it work perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jul 2010 15:52:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-PDF-Doesn-t-save-PDF/m-p/146899#M505420</guid>
      <dc:creator />
      <dc:date>2010-07-23T15:52:26Z</dc:date>
    </item>
    <item>
      <title>Export to PDF - Doesn't save PDF</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-PDF-Doesn-t-save-PDF/m-p/146900#M505421</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'm facing exaclty the same problem with win 7. deactivated uac -&amp;gt; no change &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Anyone a solution?&lt;BR /&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Oct 2010 16:38:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-PDF-Doesn-t-save-PDF/m-p/146900#M505421</guid>
      <dc:creator />
      <dc:date>2010-10-01T16:38:36Z</dc:date>
    </item>
    <item>
      <title>Export to PDF - Doesn't save PDF</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-PDF-Doesn-t-save-PDF/m-p/146901#M505422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been wondering about this for a few weeks. No one seems to be able to confirm - but I think the "QlikView" pdf writer has changed since other forum members started writing the code involving registry key changes. I have recently installed both version 7 and 9 of the PDF Writer from the QlikView website and neither seems to use the registry keys mentioned.&lt;/P&gt;&lt;P&gt;My workaround so far has been this:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;After installing the QlikView PDF Writer (Version 9) you should have a new pdf printer available in 'Printers and Faxes'&lt;/LI&gt;&lt;LI&gt;Right Click on the 'PDF-Xchange 3.0' printer and select 'Properties'&lt;/LI&gt;&lt;LI&gt;On the 'General' tab select 'Printing Preferences'&lt;/LI&gt;&lt;LI&gt;You can then set options as follows:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/0118.pdf-printer.JPG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/0118.pdf-printer.JPG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As you can see, you can specify the Path that the pdf files will be saved to. Ignore the File Name/Macro settings - these will not work. Instead, you will have to rename the files on the fly in your QV Macro using the file system object. You can do this because the pdf printer will always output the file as 'QlikView Printing.pdf'.&lt;/P&gt;&lt;P&gt;So instead of modifying registry keys my macro function now looks like this:&lt;/P&gt;&lt;P&gt;Function printReportPDF(oReport, pdfOutputFile)&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;ActiveDocument.PrintReport oReport, "PDF-XChange 3.0", false&lt;BR /&gt;Set objFSO = CreateObject("Scripting.FileSystemObject")&lt;BR /&gt;objFSO.MoveFile "C:\Temp\QlikView Printing.pdf" , pdfOutputFile&lt;/P&gt;&lt;P&gt;End Function&lt;/P&gt;&lt;P&gt;Where 'oReport' is the name of the report in QV to be printed and pdfOutputFile is the full path and name of the pdf file to be created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Oct 2010 17:03:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-PDF-Doesn-t-save-PDF/m-p/146901#M505422</guid>
      <dc:creator>nathanfurby</dc:creator>
      <dc:date>2010-10-01T17:03:57Z</dc:date>
    </item>
    <item>
      <title>Export to PDF - Doesn't save PDF</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-PDF-Doesn-t-save-PDF/m-p/146902#M505423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nathan,&lt;BR /&gt;You'r right. Previously QlikViewPDF was based on CutePDF writer (I think so), and now it is replasced with PDF-XChange 3.0. So, the old solutions are not applicable any more.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Oct 2010 21:07:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-PDF-Doesn-t-save-PDF/m-p/146902#M505423</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-03T21:07:37Z</dc:date>
    </item>
    <item>
      <title>Export to PDF - Doesn't save PDF</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-PDF-Doesn-t-save-PDF/m-p/146903#M505424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for confirming Michael. Without the ability to download the 'original' QlikView PDF Writer I wasn't 100% sure how it used to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 09:44:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-PDF-Doesn-t-save-PDF/m-p/146903#M505424</guid>
      <dc:creator>nathanfurby</dc:creator>
      <dc:date>2010-10-04T09:44:09Z</dc:date>
    </item>
  </channel>
</rss>

