<?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 Export to Excel doesnt work from load script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Export-to-Excel-doesnt-work-from-load-script/m-p/235169#M86456</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you could run a macro on the 'OnPostReload' trigger (see under Document Properties/Triggers).&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Mar 2011 23:23:32 GMT</pubDate>
    <dc:creator>rbecher</dc:creator>
    <dc:date>2011-03-01T23:23:32Z</dc:date>
    <item>
      <title>Export to Excel doesnt work from load script</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-Excel-doesnt-work-from-load-script/m-p/235168#M86455</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;i found a few posts on the export functions but still couldn't get it to work from the load script...&lt;/P&gt;&lt;P&gt;i have a QV table that i want to export to Excel and send to email every morning using scheduler.&lt;/P&gt;&lt;P&gt;i created a function that save to Excel and another one that send the email.&lt;/P&gt;&lt;P&gt;both functions work when i call them from macro BUT when i add them to the loading script the save to Excel function doesn't work.&lt;/P&gt;&lt;P&gt;this is the save to Excel function (working from macro but not from the load script, i also tried the copy paste method but same result its working from the macro but not from the load script)&lt;/P&gt;&lt;P&gt;Function CopyToExcel ()&lt;BR /&gt;&lt;BR /&gt;set XLApp = CreateObject("Excel.Application")&lt;BR /&gt;&lt;BR /&gt;'XLApp.Visible = True&lt;BR /&gt;&lt;BR /&gt;ActiveDocument.Sheets("SH01").Activate&lt;BR /&gt;set obj = ActiveDocument.getSheetObject("TB01")&lt;BR /&gt;XLApp.DisplayAlerts = False&lt;BR /&gt;obj.ExportBiff "C:\test.xls"&lt;BR /&gt;&lt;BR /&gt;XLApp.Quit&lt;BR /&gt;&lt;BR /&gt;End Function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the line i use at the end of my loading script to call the function:&lt;/P&gt;&lt;P&gt;LET vExecFunction = CopyToExcel();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help will be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;oz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 22:32:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-Excel-doesnt-work-from-load-script/m-p/235168#M86455</guid>
      <dc:creator />
      <dc:date>2011-03-01T22:32:11Z</dc:date>
    </item>
    <item>
      <title>Export to Excel doesnt work from load script</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-Excel-doesnt-work-from-load-script/m-p/235169#M86456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you could run a macro on the 'OnPostReload' trigger (see under Document Properties/Triggers).&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 23:23:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-Excel-doesnt-work-from-load-script/m-p/235169#M86456</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2011-03-01T23:23:32Z</dc:date>
    </item>
    <item>
      <title>Export to Excel doesnt work from load script</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-Excel-doesnt-work-from-load-script/m-p/235170#M86457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you are running the reload from a batch file then use the /l option&lt;/P&gt;&lt;P&gt;start C:\"Program Files"\QlikView\qv.exe /l your.qvw&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2011 01:56:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-Excel-doesnt-work-from-load-script/m-p/235170#M86457</guid>
      <dc:creator />
      <dc:date>2011-03-02T01:56:09Z</dc:date>
    </item>
    <item>
      <title>Export to Excel doesnt work from load script</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-Excel-doesnt-work-from-load-script/m-p/235171#M86458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Ralf,&lt;/P&gt;&lt;P&gt;thanks for the quick reply.&lt;/P&gt;&lt;P&gt;i wasn't aware of this functionality, its working great!&lt;/P&gt;&lt;P&gt;thank you for your help, this forum is a great!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;oz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2011 02:58:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-Excel-doesnt-work-from-load-script/m-p/235171#M86458</guid>
      <dc:creator />
      <dc:date>2011-03-02T02:58:00Z</dc:date>
    </item>
    <item>
      <title>Export to Excel doesnt work from load script</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-Excel-doesnt-work-from-load-script/m-p/235172#M86459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Michael,&lt;/P&gt;&lt;P&gt;the /l option leaves the document open at the end of the reload (this might be a problem) but it also didn't solve the export problem.&lt;/P&gt;&lt;P&gt;i was able to get it to work by calling the macro from the OnPostReload triger.&lt;/P&gt;&lt;P&gt;thanks for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;oz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2011 03:08:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-Excel-doesnt-work-from-load-script/m-p/235172#M86459</guid>
      <dc:creator />
      <dc:date>2011-03-02T03:08:55Z</dc:date>
    </item>
    <item>
      <title>Export to Excel doesnt work from load script</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-Excel-doesnt-work-from-load-script/m-p/235173#M86460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, can you share the code that attaches the excel file to an email and sends it to a group of people ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2011 00:54:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-Excel-doesnt-work-from-load-script/m-p/235173#M86460</guid>
      <dc:creator />
      <dc:date>2011-05-17T00:54:19Z</dc:date>
    </item>
  </channel>
</rss>

