<?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 Ajax 'send to excel' Button in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Ajax-send-to-excel-Button/m-p/319256#M117673</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tyler,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the shell script works, when you set the security levels on the left side of the macro editor to "System Access", not the "safe mode". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Opening the file for the user means download it via an URL, because otherwise the file is only opened on the server which the user can't see.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I'm suggesting using a fileserver (if you have no existing one, you can try the HFS (HTTP File Server), which is a freeware tool and don't need any installations). Then you can make a new button with a "Open URL" action in it which opens (download) the file. Then the user can see it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem, why you shouldn't put the Open URL action into the button which starts the export Macro is that the actions don't wait til the macro finished. They are immediately triggered, after the macro launched. And because the macro takes a millisecond longer, the Open URL Action won't fetch the new exported file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Nov 2011 07:19:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-11-17T07:19:09Z</dc:date>
    <item>
      <title>Ajax 'send to excel' Button</title>
      <link>https://community.qlik.com/t5/QlikView/Ajax-send-to-excel-Button/m-p/319250#M117667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible, within the ajax client, to create a button that will send a chart to excel?&amp;nbsp; So far from my experience you can only create macros that send objects to excel with the IE Plugin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would seem possible because the button on top of the charts works fine, unfortuanitally I need this functionality from a button.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 22:07:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ajax-send-to-excel-Button/m-p/319250#M117667</guid>
      <dc:creator />
      <dc:date>2011-11-14T22:07:49Z</dc:date>
    </item>
    <item>
      <title>Ajax 'send to excel' Button</title>
      <link>https://community.qlik.com/t5/QlikView/Ajax-send-to-excel-Button/m-p/319251#M117668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;unfortunately* &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 22:14:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ajax-send-to-excel-Button/m-p/319251#M117668</guid>
      <dc:creator />
      <dc:date>2011-11-14T22:14:05Z</dc:date>
    </item>
    <item>
      <title>Ajax 'send to excel' Button</title>
      <link>https://community.qlik.com/t5/QlikView/Ajax-send-to-excel-Button/m-p/319252#M117669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you need to export the chart data into excel or the whole image of the chart?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2011 08:12:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ajax-send-to-excel-Button/m-p/319252#M117669</guid>
      <dc:creator />
      <dc:date>2011-11-15T08:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Ajax 'send to excel' Button</title>
      <link>https://community.qlik.com/t5/QlikView/Ajax-send-to-excel-Button/m-p/319253#M117670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just the chart data would be fine.&amp;nbsp; It is a pivot table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tyler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2011 18:16:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ajax-send-to-excel-Button/m-p/319253#M117670</guid>
      <dc:creator />
      <dc:date>2011-11-15T18:16:29Z</dc:date>
    </item>
    <item>
      <title>Ajax 'send to excel' Button</title>
      <link>https://community.qlik.com/t5/QlikView/Ajax-send-to-excel-Button/m-p/319254#M117671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tyler,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in AJAX most of the macro functionalities doesn't work. I had the same problem and I solved it by exporting first the chart data via macro to a txt file. Then, by a Shell Script, you can open an excel file with a macro inside which automatically fetches the data of the txt file and fills the excel file with it. &lt;/P&gt;&lt;P&gt;I know, it sounds a bit complicated, but it's the only workaround, I found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exporting the data of any chart to a txt file is simple:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub ExportChart()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; path = "D:\Export1.txt"&amp;nbsp;&amp;nbsp; ' Set your path, where the txt file shall be created&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set chart1 = ActiveDocument.GetSheetObject("CH01")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'CH01 has to be the ID of your chart&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; chart1.Export path, ";"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Open an Excel File via Shell&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cmd = "D:\ExcelFileWithMacro.xls"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set WSH = CreateObject("WScript.Shell")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WSH.Run (cmd),0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 08:00:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ajax-send-to-excel-Button/m-p/319254#M117671</guid>
      <dc:creator />
      <dc:date>2011-11-16T08:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Ajax 'send to excel' Button</title>
      <link>https://community.qlik.com/t5/QlikView/Ajax-send-to-excel-Button/m-p/319255#M117672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; This is very helpful and I think I am moving in the right direction.&amp;nbsp; I couldn't get the shell script to work but this export can create .csv files, which is nice.&amp;nbsp; Here is the macro I am running now:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub ExportChart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; path = "C:\Export1.csv"&amp;nbsp;&amp;nbsp; ' Set your path, where the txt file shall be created&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set chart1 = ActiveDocument.GetSheetObject("CH01")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'CH01 has to be the ID of your chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; chart1.Export path, ","&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Do you know of a way to prompt the opening of this Export1.csv file? &lt;/STRONG&gt; I tried a 'Launch' action but that only works in the developer not from the ajax client.&amp;nbsp; Launch seems to just open a new tab when run from the ajax client.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tyler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 18:43:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ajax-send-to-excel-Button/m-p/319255#M117672</guid>
      <dc:creator />
      <dc:date>2011-11-16T18:43:52Z</dc:date>
    </item>
    <item>
      <title>Ajax 'send to excel' Button</title>
      <link>https://community.qlik.com/t5/QlikView/Ajax-send-to-excel-Button/m-p/319256#M117673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tyler,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the shell script works, when you set the security levels on the left side of the macro editor to "System Access", not the "safe mode". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Opening the file for the user means download it via an URL, because otherwise the file is only opened on the server which the user can't see.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I'm suggesting using a fileserver (if you have no existing one, you can try the HFS (HTTP File Server), which is a freeware tool and don't need any installations). Then you can make a new button with a "Open URL" action in it which opens (download) the file. Then the user can see it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem, why you shouldn't put the Open URL action into the button which starts the export Macro is that the actions don't wait til the macro finished. They are immediately triggered, after the macro launched. And because the macro takes a millisecond longer, the Open URL Action won't fetch the new exported file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2011 07:19:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ajax-send-to-excel-Button/m-p/319256#M117673</guid>
      <dc:creator />
      <dc:date>2011-11-17T07:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: Ajax 'send to excel' Button</title>
      <link>https://community.qlik.com/t5/QlikView/Ajax-send-to-excel-Button/m-p/319257#M117674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For some reason I can't use the above code to export to csv in ajax.&amp;nbsp; Security is set to System Access...what other settings are needed?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2012 18:26:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ajax-send-to-excel-Button/m-p/319257#M117674</guid>
      <dc:creator>pgdavis2</dc:creator>
      <dc:date>2012-04-03T18:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: Ajax 'send to excel' Button</title>
      <link>https://community.qlik.com/t5/QlikView/Ajax-send-to-excel-Button/m-p/319258#M117675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you looked at the ServerSideExportEx API in the API Guide?&amp;nbsp; I believe this is what you will need in order to use the button in Ajax client.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2012 22:29:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ajax-send-to-excel-Button/m-p/319258#M117675</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2012-04-03T22:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Ajax 'send to excel' Button</title>
      <link>https://community.qlik.com/t5/QlikView/Ajax-send-to-excel-Button/m-p/319259#M117676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you're right.&amp;nbsp; Unfortunately there seems to be a bug in QV11 where only xml export works using this method.&amp;nbsp; I did some research and found someone else reported this also:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/190250#190250"&gt;http://community.qlik.com/message/190250#190250&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 01:11:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ajax-send-to-excel-Button/m-p/319259#M117676</guid>
      <dc:creator>pgdavis2</dc:creator>
      <dc:date>2012-04-04T01:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Ajax 'send to excel' Button</title>
      <link>https://community.qlik.com/t5/QlikView/Ajax-send-to-excel-Button/m-p/319260#M117677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correct the ID is 45241, but you can try the html format instead:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;sub HTML&lt;BR /&gt;set tb = ActiveDocument.GetSheetObject("TB01")&lt;BR /&gt;tb.ServerSideExportEX "C:\test.html" , ";" , 0&lt;BR /&gt;end sub&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 16:20:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ajax-send-to-excel-Button/m-p/319260#M117677</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2012-04-04T16:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: Ajax 'send to excel' Button</title>
      <link>https://community.qlik.com/t5/QlikView/Ajax-send-to-excel-Button/m-p/319261#M117678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The only problem with the above is the code/process to get the file from the server to the client, which you will need to write.&amp;nbsp; Regarding things in IE that can block things, the Enable Protected Mode setting is most off the culprit in these cases, so you can be sure your QVServer site is in Local Intranet or Trusted Sites Security Zones, as those should have it disabled by default.&amp;nbsp; Other than that, I would recommend you use Fiddler to trace things, as that will likely give you a better indication as to where things are getting stuck, or you can simply try the F12 Developer Tools option in IE as well, as that may work as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 16:39:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ajax-send-to-excel-Button/m-p/319261#M117678</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2012-04-04T16:39:29Z</dc:date>
    </item>
  </channel>
</rss>

