<?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 Cannot print container from macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Cannot-print-container-from-macro/m-p/675043#M674338</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 trying to print a container containing specifically formatted text objects from a macro for a variable amount of times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the macro:&lt;/P&gt;&lt;TABLE height="124" style="height: 104px; width: 1147px;" width="1145"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;For i = 1 To ActiveDocument.Variables("vNumPrints").GetContent.String&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.GetSheetObject("CT01").PrintEx ActiveDocument.Variables("vPrinterName").GetContent.String, false&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;Next&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have no problem printing a text object alone, but for some reason Qlikview will not print containers from the macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know an alternative / solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Aug 2014 16:35:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-08-13T16:35:01Z</dc:date>
    <item>
      <title>Cannot print container from macro</title>
      <link>https://community.qlik.com/t5/QlikView/Cannot-print-container-from-macro/m-p/675043#M674338</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 trying to print a container containing specifically formatted text objects from a macro for a variable amount of times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the macro:&lt;/P&gt;&lt;TABLE height="124" style="height: 104px; width: 1147px;" width="1145"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;For i = 1 To ActiveDocument.Variables("vNumPrints").GetContent.String&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.GetSheetObject("CT01").PrintEx ActiveDocument.Variables("vPrinterName").GetContent.String, false&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;Next&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have no problem printing a text object alone, but for some reason Qlikview will not print containers from the macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know an alternative / solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 16:35:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cannot-print-container-from-macro/m-p/675043#M674338</guid>
      <dc:creator />
      <dc:date>2014-08-13T16:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot print container from macro</title>
      <link>https://community.qlik.com/t5/QlikView/Cannot-print-container-from-macro/m-p/675044#M674341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure if it's possible maybe you need to activate the container-objects or use another print-method - see here &lt;A href="https://community.qlik.com/message/587979"&gt;Re: How to activate object in a container on active sheet&lt;/A&gt; and have a look into APIGuide.qvw in your install-folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively you could use reports to print your container and/or (unfortunately very often) you need specialized print-sheets and print-objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 19:22:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cannot-print-container-from-macro/m-p/675044#M674341</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-08-13T19:22:34Z</dc:date>
    </item>
  </channel>
</rss>

