<?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 for PDF File generation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-for-PDF-File-generation/m-p/142374#M21853</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When the PDF is up for discussion. Does anyone know if it is possible to make a macro that creates a pdf from a predefined report and attaches it to a outlook email template?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 25 Apr 2009 18:41:37 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-04-25T18:41:37Z</dc:date>
    <item>
      <title>Macro for PDF File generation</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-for-PDF-File-generation/m-p/142372#M21851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using QlikView to generate reports... I'm wondering if there is a macro that would...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(1) Generate a PDF file for each user that I have. (field is TCode)&lt;/P&gt;&lt;P&gt;(2) Use PDF functionality other than QlikViewPDF.&lt;/P&gt;&lt;P&gt;(3) Auto save to specific location with the Tcode or other field as part of the file name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Niegel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Apr 2009 05:03:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-for-PDF-File-generation/m-p/142372#M21851</guid>
      <dc:creator>niegel</dc:creator>
      <dc:date>2009-04-25T05:03:41Z</dc:date>
    </item>
    <item>
      <title>Macro for PDF File generation</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-for-PDF-File-generation/m-p/142373#M21852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In response to (2) this is a routine to load installed printer in a variable input box predefined values list. To print in another PDF printer, like i.e. CutePDF, you use .printex method.&lt;/P&gt;&lt;P&gt;'=============================================================================================&lt;BR /&gt;'Available printer&lt;BR /&gt;'=============================================================================================&lt;BR /&gt;sub SetPrinterList&lt;BR /&gt;&lt;BR /&gt; ' Get active printers (This will need "system access" security on)&lt;BR /&gt; set nw = CreateObject("WScript.Network")&lt;BR /&gt; set pr = nw.EnumPrinterConnections&lt;BR /&gt; redim lv((pr.Count/2))&lt;BR /&gt; lv(0) = "Default"&lt;BR /&gt; For i = 1 to pr.Count Step 2&lt;BR /&gt; lv(1+((i-1)/2)) = pr.Item(i)&lt;BR /&gt; Next&lt;BR /&gt; set pr = nothing&lt;BR /&gt; set nw = nothing&lt;BR /&gt;&lt;BR /&gt; ' Define printer list&lt;BR /&gt; set vr = ActiveDocument.Variables("PRINTER")&lt;BR /&gt; vp = vr.GetProperties&lt;BR /&gt; vp.PreDefinedList = lv&lt;BR /&gt; vp.ConstraintsFlag = 3 ' Predefined values only&lt;BR /&gt; vp.UseMRU = false&lt;BR /&gt; vp.UsePredefListedValues = true&lt;BR /&gt; vp.UsePredefNumberSeries = false&lt;BR /&gt; vp.UseScroll = false&lt;BR /&gt; vr.SetProperties vp&lt;BR /&gt; set vr = nothing&lt;BR /&gt;&lt;BR /&gt; ' Refresh Input Box content, set to "default" printer&lt;BR /&gt; set ib = ActiveDocument.GetSheetObject("IB01")&lt;BR /&gt; set bp = ib.GetProperties&lt;BR /&gt; if bp.Layout.MemberAttributes(0).Name.v = "PRINTER" then&lt;BR /&gt; ' Default will need .Printout method, others will need .Printex&lt;BR /&gt; ib.SetVariableContent 0,"Default",false&lt;BR /&gt; end if&lt;BR /&gt; set bp = nothing&lt;BR /&gt; set ib = nothing&lt;BR /&gt;&lt;BR /&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User selection may be retrieved by :&lt;/P&gt;&lt;P&gt;set vr = ActiveDocument.Variables("PRINTER")&lt;BR /&gt; gsPrinter = vr.GetContent.String&lt;BR /&gt; set vr = nothing&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Apr 2009 13:18:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-for-PDF-File-generation/m-p/142373#M21852</guid>
      <dc:creator>yblake</dc:creator>
      <dc:date>2009-04-25T13:18:49Z</dc:date>
    </item>
    <item>
      <title>Macro for PDF File generation</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-for-PDF-File-generation/m-p/142374#M21853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When the PDF is up for discussion. Does anyone know if it is possible to make a macro that creates a pdf from a predefined report and attaches it to a outlook email template?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Apr 2009 18:41:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-for-PDF-File-generation/m-p/142374#M21853</guid>
      <dc:creator />
      <dc:date>2009-04-25T18:41:37Z</dc:date>
    </item>
  </channel>
</rss>

