<?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 Saving PDF report issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Saving-PDF-report-issue/m-p/160864#M34963</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should be able to use the CutePDF writer with that macro if you just change the registry key values from ...\QlikViewPDF\.. to ..\CutePDF\...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Nov 2009 10:33:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-11-24T10:33:25Z</dc:date>
    <item>
      <title>Saving PDF report issue</title>
      <link>https://community.qlik.com/t5/QlikView/Saving-PDF-report-issue/m-p/160861#M34960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Very new to this forum and I was trying to code some macro to create and save report in PDF format. I found some code in this forum and its seems to working, but not as I expected. The problem in the below code is it prompts window to save as and then need to press OK to save the repot. But I wanted not to do this. I installed CutePDF writer.&lt;/P&gt;&lt;P&gt;Any suggesion will be appricated and thantks in advance.&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;/P&gt;&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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &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;P&gt;&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;/P&gt;&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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub PrintReport&lt;/P&gt;&lt;P&gt;Set WSHShell = CreateObject("WScript.Shell")&lt;BR /&gt;fln = "C:\myreport.pdf"&lt;BR /&gt;RegKey = "HKEY_CURRENT_USER\Software\CutePDF"&lt;BR /&gt;WSHShell.RegWrite RegKey &amp;amp; "BypassSaveAs", 1&lt;BR /&gt; WSHShell.RegWrite RegKey &amp;amp; "OutputFile", fln,len(fln)&lt;BR /&gt;ActiveDocument.GetApplication.Sleep 2000&lt;BR /&gt;ActiveDocument.PrintDocReport "RP01", "CutePDF Writer"&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;/P&gt;&lt;P&gt;End Sub&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Nov 2009 00:31:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Saving-PDF-report-issue/m-p/160861#M34960</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-21T00:31:22Z</dc:date>
    </item>
    <item>
      <title>Saving PDF report issue</title>
      <link>https://community.qlik.com/t5/QlikView/Saving-PDF-report-issue/m-p/160862#M34961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Am not sure, whether your script works for the CutePDF. Am using the basically the same code (it has been posted earlier in this forum), but for the QlikView PDF-printer (you may download it from the QV-page):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sub PrintReport&lt;BR /&gt; fPrintReport2PDF "RP04", "c:\temp\test.pdf" ' CALLS FUNCTION&lt;BR /&gt;End Sub&lt;BR /&gt;&lt;BR /&gt;Function fPrintReport2PDF(oReport, 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; ActiveDocument.PrintReport oReport, "QlikViewPDF", false&lt;BR /&gt; WSHShell.RegWrite "HKCU\Software\QlikViewPDF\BypassSaveAs", "0", "REG_SZ"&lt;BR /&gt; set WSHShell = nothing&lt;BR /&gt;End Function&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;HTH&lt;BR /&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Nov 2009 03:10:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Saving-PDF-report-issue/m-p/160862#M34961</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2009-11-22T03:10:43Z</dc:date>
    </item>
    <item>
      <title>Saving PDF report issue</title>
      <link>https://community.qlik.com/t5/QlikView/Saving-PDF-report-issue/m-p/160863#M34962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply, I tried to get the QlikviewPDF download and were not found the link... I will try to look on this ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2009 05:34:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Saving-PDF-report-issue/m-p/160863#M34962</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-24T05:34:06Z</dc:date>
    </item>
    <item>
      <title>Saving PDF report issue</title>
      <link>https://community.qlik.com/t5/QlikView/Saving-PDF-report-issue/m-p/160864#M34963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should be able to use the CutePDF writer with that macro if you just change the registry key values from ...\QlikViewPDF\.. to ..\CutePDF\...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2009 10:33:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Saving-PDF-report-issue/m-p/160864#M34963</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-24T10:33:25Z</dc:date>
    </item>
    <item>
      <title>Saving PDF report issue</title>
      <link>https://community.qlik.com/t5/QlikView/Saving-PDF-report-issue/m-p/160865#M34964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your change the highlighted line should solve your problem:&lt;/P&gt;&lt;P&gt;Sub PrintReport&lt;/P&gt;&lt;P&gt;Set WSHShell = CreateObject("WScript.Shell")&lt;BR /&gt;fln = "C:\myreport.pdf"&lt;BR /&gt;RegKey = "HKEY_CURRENT_USER\Software\CutePDF\"&lt;BR /&gt;WSHShell.RegWrite RegKey &amp;amp; "BypassSaveAs", 1&lt;BR /&gt; WSHShell.RegWrite RegKey &amp;amp; "OutputFile", fln,len(fln)&lt;BR /&gt;ActiveDocument.GetApplication.Sleep 2000 &lt;B&gt;&lt;BR /&gt;&lt;/B&gt;&lt;/P&gt;&lt;H2&gt;&lt;B&gt;[ActiveDocument.PrintDocReport "RP01", "CutePDF Writer"] ===&amp;gt; [&lt;/B&gt;ActiveDocument.PrintDocReport "RP01", "CutePDF"]&lt;/H2&gt;&lt;H2&gt;&lt;/H2&gt;&lt;P&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;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 May 2010 04:55:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Saving-PDF-report-issue/m-p/160865#M34964</guid>
      <dc:creator />
      <dc:date>2010-05-31T04:55:35Z</dc:date>
    </item>
    <item>
      <title>Saving PDF report issue</title>
      <link>https://community.qlik.com/t5/QlikView/Saving-PDF-report-issue/m-p/160866#M34965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried the macro suggested by Peter to save the Report to PDF. However, instead of saving the report as a PDF to the specified folder, it just prints the report directly to the printer. I would like to just save the PDF report to a folder without printing it. Below is the macro.&lt;/P&gt;&lt;P&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; fPrintReport2PDF "RP01", "C:\file.pdf" ' CALLS FUNCTION&lt;BR /&gt;End Sub&lt;BR /&gt;&lt;BR /&gt;Function fPrintReport2PDF(oReport, 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; ActiveDocument.PrintReport oReport, "QlikViewPDF", false&lt;BR /&gt; WSHShell.RegWrite "HKCU\Software\QlikViewPDF\BypassSaveAs", "0", "REG_SZ"&lt;BR /&gt; set WSHShell = nothing&lt;BR /&gt;End Function&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Aug 2010 19:49:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Saving-PDF-report-issue/m-p/160866#M34965</guid>
      <dc:creator />
      <dc:date>2010-08-23T19:49:32Z</dc:date>
    </item>
    <item>
      <title>Saving PDF report issue</title>
      <link>https://community.qlik.com/t5/QlikView/Saving-PDF-report-issue/m-p/160867#M34966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See code below that I used, it work without any issues...&lt;/P&gt;&lt;P&gt;sub PrintReport&lt;/P&gt;&lt;P&gt;'Set The user selection&lt;/P&gt;&lt;P&gt;set v = ActiveDocument.Variables("vOSUSER")&lt;BR /&gt;mUser = v.GetContent.String&lt;BR /&gt;ActiveDocument.Fields("JiraUser").Select(mUser)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Set WSHShell = CreateObject("WScript.Shell")&lt;BR /&gt;fln = "C:\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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Aug 2010 22:48:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Saving-PDF-report-issue/m-p/160867#M34966</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-08-23T22:48:53Z</dc:date>
    </item>
    <item>
      <title>Saving PDF report issue</title>
      <link>https://community.qlik.com/t5/QlikView/Saving-PDF-report-issue/m-p/160868#M34967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What does your vOSUSER variable contain ? Is that just the OSUser function ? How about the JiraUser ? I don't have such a field in my app.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Aug 2010 23:03:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Saving-PDF-report-issue/m-p/160868#M34967</guid>
      <dc:creator />
      <dc:date>2010-08-23T23:03:23Z</dc:date>
    </item>
    <item>
      <title>Saving PDF report issue</title>
      <link>https://community.qlik.com/t5/QlikView/Saving-PDF-report-issue/m-p/160869#M34968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi - vOSUSER to get the user prfile and filter based on user name. You can forget the first 3 lines.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Aug 2010 23:17:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Saving-PDF-report-issue/m-p/160869#M34968</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-08-23T23:17:42Z</dc:date>
    </item>
  </channel>
</rss>

