<?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 to Print via XPS Printer Driver in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-to-Print-via-XPS-Printer-Driver/m-p/489787#M1140498</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on a Print solution in which we perform our own 'banding' in macro code, looping over certain values, then issue a PrintReport for each one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is working great to PDF via BullZip.&amp;nbsp; Please see the sample (pseudo-code "A") attached.&amp;nbsp; Thanks to all whose prior contributions (which I exhaustively searched) led to this working on my Windows 7, 64-bit machine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I have been asked to port the printing solution to use an XPS format.&amp;nbsp; I'll admit, I'd never heard of XPS format, but lo' - I posses a print driver named 'Microsoft XPS Document Writer'.&amp;nbsp; So, I am trying to implement a print macro that uses the RegKey examples that mostly populates the community (e.g. WriteReg for "BypassSaveAs", "OutputFile"...etc.) for the 'QlikViewPDF' printing, wherein the name fo the print-driver matches the RegKey and the .printReport method call parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sample for macro print to XPS is attached (psuedo-code "B").&amp;nbsp; The code works for me - it writes the Registry settings, and generates the report, but the printer driver Save-As... dialog pops-up and it won't honor the pre-configured "OutputFile".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Yes - I have the Requested-Module-Security as "System Access" and Current-Local-Security as "Allow System Access"...&lt;/EM&gt; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering if anyone has any experience with printing to the standard 'Microsoft XPS Document Writer' print driver? Or, any other XPS print driver? I am guessing that a special approach is needed, such as the BullZipPDF example, which deviates from the typical Regkey method used for 'QlikViewPDF'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help/comments are appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Sep 2013 19:52:31 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-09-05T19:52:31Z</dc:date>
    <item>
      <title>Macro to Print via XPS Printer Driver</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-Print-via-XPS-Printer-Driver/m-p/489787#M1140498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on a Print solution in which we perform our own 'banding' in macro code, looping over certain values, then issue a PrintReport for each one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is working great to PDF via BullZip.&amp;nbsp; Please see the sample (pseudo-code "A") attached.&amp;nbsp; Thanks to all whose prior contributions (which I exhaustively searched) led to this working on my Windows 7, 64-bit machine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I have been asked to port the printing solution to use an XPS format.&amp;nbsp; I'll admit, I'd never heard of XPS format, but lo' - I posses a print driver named 'Microsoft XPS Document Writer'.&amp;nbsp; So, I am trying to implement a print macro that uses the RegKey examples that mostly populates the community (e.g. WriteReg for "BypassSaveAs", "OutputFile"...etc.) for the 'QlikViewPDF' printing, wherein the name fo the print-driver matches the RegKey and the .printReport method call parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sample for macro print to XPS is attached (psuedo-code "B").&amp;nbsp; The code works for me - it writes the Registry settings, and generates the report, but the printer driver Save-As... dialog pops-up and it won't honor the pre-configured "OutputFile".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Yes - I have the Requested-Module-Security as "System Access" and Current-Local-Security as "Allow System Access"...&lt;/EM&gt; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering if anyone has any experience with printing to the standard 'Microsoft XPS Document Writer' print driver? Or, any other XPS print driver? I am guessing that a special approach is needed, such as the BullZipPDF example, which deviates from the typical Regkey method used for 'QlikViewPDF'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help/comments are appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2013 19:52:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-Print-via-XPS-Printer-Driver/m-p/489787#M1140498</guid>
      <dc:creator />
      <dc:date>2013-09-05T19:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to Print via XPS Printer Driver</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-Print-via-XPS-Printer-Driver/m-p/489788#M1140499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hii&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have free PDf Setup along with PDF Print macros which works fine with no issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please install the bullzip free printer and test macros.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 04:33:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-Print-via-XPS-Printer-Driver/m-p/489788#M1140499</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2013-09-06T04:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to Print via XPS Printer Driver</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-Print-via-XPS-Printer-Driver/m-p/489789#M1140500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response and for sharing your sample qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, my question pertains strictly to printing as XPS via either the 'Microsoft XPS Document Writer' print driver, or another XPS-based print driver.&amp;nbsp; I am already capable of printing to PDF via the BullzipPDF print driver. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your sample is reflective of the 'QlikViewPDF' solution, where the RegKey for 'BypassSaveAs' and 'OutputFile' permit un-attended printing to PDF via the QlikViewPDF print driver.&amp;nbsp; Presumably, this RegKey approach would work with numerous other PDF print drivers.&amp;nbsp; It did *not* work with the BullzipPDF.&amp;nbsp; However, another solution for BullzipPDF was located on the QlikView community, and I have that working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My post and attached psuedo-code clearly stated this (or so I thought).&amp;nbsp; I am looking for assistance with porting any macro-printing solution towards the 'Microsoft XPS Document Writer' or other XPS print driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can successfully print to XPS via 'Microsoft XPS Document Writer', but the print driver is not honoring the 'BypassSaveAs' and 'OutputFile' RegKeys.&amp;nbsp; So, I figure that a custom solution, similar to that of BullzipPDF, might exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am only looking for help with printing to XPS.&amp;nbsp; But thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 13:46:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-Print-via-XPS-Printer-Driver/m-p/489789#M1140500</guid>
      <dc:creator />
      <dc:date>2013-09-06T13:46:01Z</dc:date>
    </item>
  </channel>
</rss>

