<?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 Re: Print Reports Using Macro from Browser (AJAX) Not Working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Print-Reports-Using-Macro-from-Browser-AJAX-Not-Working/m-p/1078965#M359736</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It sounds that you mixed up different things which are not the same. The feature print sheet is different to print a report and firing a macro isn't the same then firing an action. If you really want to use macro-functionalities within the ajax-client you will need to use an extension for it and even this will be restricted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore I suggest to use the inbuilt report-feature which could very easy access multiple reports.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 09 Apr 2016 08:49:17 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2016-04-09T08:49:17Z</dc:date>
    <item>
      <title>Print Reports Using Macro from Browser (AJAX) Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Print-Reports-Using-Macro-from-Browser-AJAX-Not-Working/m-p/1078961#M359732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having an issue trying to generate reports (PDF) from a macro script.&amp;nbsp; The following is the setup:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. A variable (vReportID)&amp;nbsp; gets set with the report ID (ie. RP01, RP02, etc).&lt;/P&gt;&lt;P&gt;2. A button is setup with an action of Print Report, Report ID =&amp;nbsp; '=&lt;SPAN style="font-size: 13.3333px;"&gt;vReportID' and Printer Name = 'PDF-XChange 3.0'.&amp;nbsp; When I manually click the button from the browser/Access Point, the report is generated correctly and it opens in a new tab.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;3. Create a macro function to calculate the value of &lt;SPAN style="font-size: 13.3333px;"&gt;vReportID variable and set it, then find the button object and call Press method.&amp;nbsp; This works correctly and the button action(s) are called.&amp;nbsp; I added a second action to activate another sheet just so I know that the button is getting pressed.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that when I click the button manually it works correctly, but when the macro calls Press, the Print Report action either isn't being run or it is failing because no PDF is opened in a new tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody have any thoughts on what the issue could be?&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>Thu, 07 Apr 2016 22:04:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Print-Reports-Using-Macro-from-Browser-AJAX-Not-Working/m-p/1078961#M359732</guid>
      <dc:creator>louiswinter</dc:creator>
      <dc:date>2016-04-07T22:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Print Reports Using Macro from Browser (AJAX) Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Print-Reports-Using-Macro-from-Browser-AJAX-Not-Working/m-p/1078962#M359733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/190108"&gt;Print Sheet not working in ajax mode&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2016 05:33:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Print-Reports-Using-Macro-from-Browser-AJAX-Not-Working/m-p/1078962#M359733</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2016-04-08T05:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Print Reports Using Macro from Browser (AJAX) Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Print-Reports-Using-Macro-from-Browser-AJAX-Not-Working/m-p/1078963#M359734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Most macros won't work in ajax and shouldn't in general be avoided: &lt;A href="https://community.qlik.com/qlik-blogpost/3700"&gt;Macros are Bad&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2016 05:34:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Print-Reports-Using-Macro-from-Browser-AJAX-Not-Working/m-p/1078963#M359734</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-04-08T05:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: Print Reports Using Macro from Browser (AJAX) Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Print-Reports-Using-Macro-from-Browser-AJAX-Not-Working/m-p/1078964#M359735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;According to the &lt;A _jive_internal="true" data-containerid="2051" data-containertype="14" data-objectid="190108" data-objecttype="1" href="https://community.qlik.com/thread/190108" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3778c7; text-decoration: underline;"&gt;Print Sheet not working in ajax mode&lt;/A&gt; article, "Print Report" does work in AJAX.&amp;nbsp; When I click my print button manually it does print the report and open it in a new tab as expected.&amp;nbsp; And, the macro is running correctly as well because the 2nd action (just for debug purposes) that activates another sheet fires when the macro runs.&amp;nbsp; The issue is when the print button is pressed via the macro the "Print Report" (1st action) doesn't work but the 2nd action does.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The attached doc shows my issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Manually clicking on the "Generate Report RP##' button on Sheet1 works.&lt;/P&gt;&lt;P&gt;Clicking on "Generate Selected Report(s)" causes macro to run.&amp;nbsp; The macro sets a variable to the correct report ID and calls Press on the "Generate Report RP##" button.&amp;nbsp; This is what doesn't work in AJAX but does in the desktop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2016 12:49:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Print-Reports-Using-Macro-from-Browser-AJAX-Not-Working/m-p/1078964#M359735</guid>
      <dc:creator>louiswinter</dc:creator>
      <dc:date>2016-04-08T12:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Print Reports Using Macro from Browser (AJAX) Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Print-Reports-Using-Macro-from-Browser-AJAX-Not-Working/m-p/1078965#M359736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It sounds that you mixed up different things which are not the same. The feature print sheet is different to print a report and firing a macro isn't the same then firing an action. If you really want to use macro-functionalities within the ajax-client you will need to use an extension for it and even this will be restricted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore I suggest to use the inbuilt report-feature which could very easy access multiple reports.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Apr 2016 08:49:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Print-Reports-Using-Macro-from-Browser-AJAX-Not-Working/m-p/1078965#M359736</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-04-09T08:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Print Reports Using Macro from Browser (AJAX) Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Print-Reports-Using-Macro-from-Browser-AJAX-Not-Working/m-p/1078966#M359737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't said anything about "Print Sheet", the link Staffan posted refers to printing sheets so maybe that's where the confusion came in.&amp;nbsp; My issue is that I want to print a QV report using a macro, and it isn't working.&amp;nbsp; For testing I added a button to a sheet and set the action to "Print Report", this works correctly.&amp;nbsp; If I call the "Press" method of the same button from a macro, it doesn't work.&amp;nbsp; I've also tried to call "ActiveDocument.PrintReport" and this doesn't work in AJAX either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I have confirmed that the macro is running.&amp;nbsp; I attached a sample in another post which may explain my issue a little better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Louis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 17:11:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Print-Reports-Using-Macro-from-Browser-AJAX-Not-Working/m-p/1078966#M359737</guid>
      <dc:creator>louiswinter</dc:creator>
      <dc:date>2016-04-11T17:11:16Z</dc:date>
    </item>
  </channel>
</rss>

