<?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 can't save pdf file in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/can-t-save-pdf-file/m-p/187008#M50847</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All&lt;/P&gt;&lt;P&gt;We use this micro for saving PDF file but it bypass the save kindly help me.&lt;/P&gt;&lt;P&gt;----------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub ExportToPDF&lt;BR /&gt;&lt;BR /&gt; printExportPDF "D:\Ashish\Dashboard.pdf"&lt;BR /&gt; ActiveDocument.GetApplication.Sleep 2000&lt;BR /&gt; ActiveDocument.Sheets("Sheet1").Activate&lt;BR /&gt; ActiveDocument.GetApplication.WaitForIdle&lt;BR /&gt; ActiveDocument.GetApplication.Sleep 2000&lt;BR /&gt; ActiveDocument.sheets("Sheet1").Print&lt;BR /&gt; ActiveDocument.GetApplication.Sleep 2000&lt;BR /&gt; ActiveDocument.GetApplication.WaitForIdle&lt;BR /&gt; 'SendMail&lt;BR /&gt;end sub&lt;BR /&gt;'===========================================================================&lt;BR /&gt;Function printExportPDF(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;BR /&gt;'===========================================================================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Sep 2010 08:33:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-09-03T08:33:14Z</dc:date>
    <item>
      <title>can't save pdf file</title>
      <link>https://community.qlik.com/t5/QlikView/can-t-save-pdf-file/m-p/187008#M50847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All&lt;/P&gt;&lt;P&gt;We use this micro for saving PDF file but it bypass the save kindly help me.&lt;/P&gt;&lt;P&gt;----------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub ExportToPDF&lt;BR /&gt;&lt;BR /&gt; printExportPDF "D:\Ashish\Dashboard.pdf"&lt;BR /&gt; ActiveDocument.GetApplication.Sleep 2000&lt;BR /&gt; ActiveDocument.Sheets("Sheet1").Activate&lt;BR /&gt; ActiveDocument.GetApplication.WaitForIdle&lt;BR /&gt; ActiveDocument.GetApplication.Sleep 2000&lt;BR /&gt; ActiveDocument.sheets("Sheet1").Print&lt;BR /&gt; ActiveDocument.GetApplication.Sleep 2000&lt;BR /&gt; ActiveDocument.GetApplication.WaitForIdle&lt;BR /&gt; 'SendMail&lt;BR /&gt;end sub&lt;BR /&gt;'===========================================================================&lt;BR /&gt;Function printExportPDF(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;BR /&gt;'===========================================================================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Sep 2010 08:33:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/can-t-save-pdf-file/m-p/187008#M50847</guid>
      <dc:creator />
      <dc:date>2010-09-03T08:33:14Z</dc:date>
    </item>
    <item>
      <title>can't save pdf file</title>
      <link>https://community.qlik.com/t5/QlikView/can-t-save-pdf-file/m-p/187009#M50848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;help me this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Sep 2010 09:58:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/can-t-save-pdf-file/m-p/187009#M50848</guid>
      <dc:creator />
      <dc:date>2010-09-03T09:58:45Z</dc:date>
    </item>
    <item>
      <title>can't save pdf file</title>
      <link>https://community.qlik.com/t5/QlikView/can-t-save-pdf-file/m-p/187010#M50849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashish,&lt;/P&gt;&lt;P&gt;I've tested your script in a simple .qvw and the .pdf file is saved righlty.&lt;/P&gt;&lt;P&gt;Maybe the problem is the printer that you have selected by default, cause in your script you dont say what printeruse to print the Sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the script I've tested:&lt;/P&gt;&lt;P&gt;'************************************************************************&lt;/P&gt;&lt;P&gt;sub ExportToPDF&lt;BR /&gt; printExportPDF "C:\test.pdf"&lt;BR /&gt; ActiveDocument.GetApplication.Sleep 2000&lt;BR /&gt; ActiveDocument.Sheets("SH01").Activate&lt;BR /&gt; ActiveDocument.GetApplication.WaitForIdle&lt;BR /&gt; ActiveDocument.GetApplication.Sleep 2000&lt;BR /&gt; ActiveDocument.sheets("SH01").Print&lt;BR /&gt; ActiveDocument.GetApplication.Sleep 2000&lt;BR /&gt; ' ActiveDocument.GetApplication.WaitForIdle&lt;BR /&gt;end sub&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;'===========================================================================&lt;BR /&gt;Function printExportPDF(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;&lt;BR /&gt; Set WSHShell = nothing&lt;BR /&gt;End function&lt;BR /&gt;'=========================================================================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Dec 2010 10:10:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/can-t-save-pdf-file/m-p/187010#M50849</guid>
      <dc:creator />
      <dc:date>2010-12-31T10:10:33Z</dc:date>
    </item>
  </channel>
</rss>

