<?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 print to specific printer in macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/print-to-specific-printer-in-macro/m-p/641084#M234863</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to print to a object (CH01) to a specific printer (printer 1).&lt;/P&gt;&lt;P&gt;I have looked at some codes and want to combine them.&lt;/P&gt;&lt;P&gt;code 1: print object looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;sub&lt;/SPAN&gt; PrintReport&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;set&lt;/SPAN&gt; lb=ActiveDocument.GetSheetObject("CH01")&lt;/P&gt;&lt;P&gt;lb.Print&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;end&lt;/SPAN&gt; sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code 2: print report to specific printer&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;sub&lt;/SPAN&gt; PrintReport&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;ActiveDocument.PrintReport "RP01", "Printer 1"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #3366ff;"&gt;end&lt;/SPAN&gt; sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;i have tried combining them and ended up with the following code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;sub&lt;/SPAN&gt; PrintReport&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;set&lt;/SPAN&gt; lb=ActiveDocument.GetSheetObject("CH01")&lt;/P&gt;&lt;P&gt;lb.Print, "Printer 1"&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;end&lt;/SPAN&gt; sub&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;sadly this does not work as i expected(no surprise).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;can you please help me.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jun 2014 15:09:12 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-05T15:09:12Z</dc:date>
    <item>
      <title>print to specific printer in macro</title>
      <link>https://community.qlik.com/t5/QlikView/print-to-specific-printer-in-macro/m-p/641084#M234863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to print to a object (CH01) to a specific printer (printer 1).&lt;/P&gt;&lt;P&gt;I have looked at some codes and want to combine them.&lt;/P&gt;&lt;P&gt;code 1: print object looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;sub&lt;/SPAN&gt; PrintReport&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;set&lt;/SPAN&gt; lb=ActiveDocument.GetSheetObject("CH01")&lt;/P&gt;&lt;P&gt;lb.Print&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;end&lt;/SPAN&gt; sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code 2: print report to specific printer&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;sub&lt;/SPAN&gt; PrintReport&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;ActiveDocument.PrintReport "RP01", "Printer 1"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #3366ff;"&gt;end&lt;/SPAN&gt; sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;i have tried combining them and ended up with the following code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;sub&lt;/SPAN&gt; PrintReport&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;set&lt;/SPAN&gt; lb=ActiveDocument.GetSheetObject("CH01")&lt;/P&gt;&lt;P&gt;lb.Print, "Printer 1"&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;end&lt;/SPAN&gt; sub&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;sadly this does not work as i expected(no surprise).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;can you please help me.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 15:09:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/print-to-specific-printer-in-macro/m-p/641084#M234863</guid>
      <dc:creator />
      <dc:date>2014-06-05T15:09:12Z</dc:date>
    </item>
  </channel>
</rss>

