<?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 -PDF- Sheets in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-PDF-Sheets/m-p/1222594#M869643</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can i print all sheets in a single pdf file through a macro vbscript?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 15px; color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;"&gt;ex: only one sheets&lt;/P&gt;&lt;PRE style="margin: 0 0 1em; padding: 5px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; background-color: #eff0f1; color: #242729;"&gt;
&lt;P style="font-size: 9px; font-family: 'Courier New';"&gt;sub Export&lt;BR /&gt; set docprop = ActiveDocument.GetProperties&lt;BR /&gt; set ps = docprop.PrintSheetSettings&lt;BR /&gt; ps.SheetPrintDrawBackGround = true&lt;BR /&gt; ActiveDocument.SetProperties docprop&lt;BR /&gt; &lt;BR /&gt; tempFolder="C:xxxx\Desktop\"&lt;BR /&gt; reportName="TestDashboard"&lt;BR /&gt; reportFile = tempFolder &amp;amp; reportName &amp;amp; day(date) &amp;amp; monthname(month(date))&amp;amp;".pdf"&lt;BR /&gt; 'msgbox reportFile&lt;BR /&gt; printReportPDF reportFile&lt;BR /&gt; ActiveDocument.GetApplication.Sleep 5000&lt;BR /&gt; ActiveDocument.sheets("Filtri").print&lt;BR /&gt; ActiveDocument.GetApplication.Sleep 5000&lt;BR /&gt; msgbox "saved."&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; &lt;SPAN style="text-decoration: underline; color: #0433ff;"&gt;&lt;STRONG&gt;End&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="text-decoration: underline; color: #0433ff;"&gt;&lt;STRONG&gt;function &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Macro -PDF- Sheets</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-PDF-Sheets/m-p/1222594#M869643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can i print all sheets in a single pdf file through a macro vbscript?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 15px; color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;"&gt;ex: only one sheets&lt;/P&gt;&lt;PRE style="margin: 0 0 1em; padding: 5px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; background-color: #eff0f1; color: #242729;"&gt;
&lt;P style="font-size: 9px; font-family: 'Courier New';"&gt;sub Export&lt;BR /&gt; set docprop = ActiveDocument.GetProperties&lt;BR /&gt; set ps = docprop.PrintSheetSettings&lt;BR /&gt; ps.SheetPrintDrawBackGround = true&lt;BR /&gt; ActiveDocument.SetProperties docprop&lt;BR /&gt; &lt;BR /&gt; tempFolder="C:xxxx\Desktop\"&lt;BR /&gt; reportName="TestDashboard"&lt;BR /&gt; reportFile = tempFolder &amp;amp; reportName &amp;amp; day(date) &amp;amp; monthname(month(date))&amp;amp;".pdf"&lt;BR /&gt; 'msgbox reportFile&lt;BR /&gt; printReportPDF reportFile&lt;BR /&gt; ActiveDocument.GetApplication.Sleep 5000&lt;BR /&gt; ActiveDocument.sheets("Filtri").print&lt;BR /&gt; ActiveDocument.GetApplication.Sleep 5000&lt;BR /&gt; msgbox "saved."&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; &lt;SPAN style="text-decoration: underline; color: #0433ff;"&gt;&lt;STRONG&gt;End&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="text-decoration: underline; color: #0433ff;"&gt;&lt;STRONG&gt;function &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-PDF-Sheets/m-p/1222594#M869643</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
  </channel>
</rss>

