<?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 OnPostReload macro export to .jpg doesn't work in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/OnPostReload-macro-export-to-jpg-doesn-t-work/m-p/250151#M95001</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure you activate the sheet for each chart object before exporting. And use WaitForIdle between all calls.&lt;/P&gt;&lt;P&gt;This had to be done in version 9. Maybe there is a similar problem in version 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QvDoc.Sheets("Sheet1").Activate&lt;/P&gt;&lt;P&gt;Qv.ActiveDocument.GetApplication.WaitForIdle&lt;/P&gt;&lt;P&gt;Set QvExp = QvDoc.GetSheetObject("CH01")&lt;/P&gt;&lt;P&gt;Qv.ActiveDocument.GetApplication.WaitForIdle&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QvDoc.Sheets("Sheet2").Activate&lt;/P&gt;&lt;P&gt;Qv.ActiveDocument.GetApplication.WaitForIdle&lt;/P&gt;&lt;P&gt;Set QvExp = QvDoc.GetSheetObject("CH02")&lt;/P&gt;&lt;P&gt;Qv.ActiveDocument.GetApplication.WaitForIdle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Oct 2011 14:02:24 GMT</pubDate>
    <dc:creator>jerrysvensson</dc:creator>
    <dc:date>2011-10-26T14:02:24Z</dc:date>
    <item>
      <title>OnPostReload macro export to .jpg doesn't work</title>
      <link>https://community.qlik.com/t5/QlikView/OnPostReload-macro-export-to-jpg-doesn-t-work/m-p/250144#M94994</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;I'm using Macros to generate 3 files after reload. So I have 3 Macro Triggers On Post Reload. Problem I have is that .jpg files are not exported, but .html is. My Macro is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function saveHTML()&lt;/P&gt;&lt;P&gt;set cs = ActiveDocument.GetSheetObject("CH14")&lt;/P&gt;&lt;P&gt;cs.ExportHtml "E:\ssh\data\AppStoreSales.html"&lt;/P&gt;&lt;P&gt;set cs = nothing&lt;/P&gt;&lt;P&gt;end function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub Export1&lt;/P&gt;&lt;P&gt;set obj = ActiveDocument.GetSheetObject("CH09")&lt;/P&gt;&lt;P&gt;obj.ExportBitmapToFile "E:\ssh\data\CH09.jpg&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub Export2&lt;/P&gt;&lt;P&gt;set obj = ActiveDocument.GetSheetObject("CH10")&lt;/P&gt;&lt;P&gt;obj.ExportBitmapToFile "E:\ssh\data\CH10.jpg" &lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As reload is scheduled with .bat file from Windows tasks, then it should work, am I right? &lt;/P&gt;&lt;P&gt;When I reload template manually then all three files are generated.&lt;/P&gt;&lt;P&gt;I am not familiar with Macros and appreciate any help. What should I change?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Mariliis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 12:54:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OnPostReload-macro-export-to-jpg-doesn-t-work/m-p/250144#M94994</guid>
      <dc:creator />
      <dc:date>2011-10-14T12:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: OnPostReload macro export to .jpg doesn't work</title>
      <link>https://community.qlik.com/t5/QlikView/OnPostReload-macro-export-to-jpg-doesn-t-work/m-p/250145#M94995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;Hi Mariliis,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;I had similar problem with .JPG format in the past. Have you tried to export image as BMP instead of JPG? Here is the post on how to export the images.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/153735#153735"&gt;http://community.qlik.com/message/153735#153735&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;I hope this helps!&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;Cheers - DV&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 14:00:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OnPostReload-macro-export-to-jpg-doesn-t-work/m-p/250145#M94995</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-10-14T14:00:57Z</dc:date>
    </item>
    <item>
      <title>OnPostReload macro export to .jpg doesn't work</title>
      <link>https://community.qlik.com/t5/QlikView/OnPostReload-macro-export-to-jpg-doesn-t-work/m-p/250146#M94996</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;Thank you for your answer. I did try .BMP format and unfortunately the situation is same. When I open document and choose reload then new files are created, but not when reload is triggered by .bat file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mariliis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2011 14:26:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OnPostReload-macro-export-to-jpg-doesn-t-work/m-p/250146#M94996</guid>
      <dc:creator />
      <dc:date>2011-10-18T14:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: OnPostReload macro export to .jpg doesn't work</title>
      <link>https://community.qlik.com/t5/QlikView/OnPostReload-macro-export-to-jpg-doesn-t-work/m-p/250147#M94997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;&lt;EM&gt;Mariliis - Which version of QlikView Server are you using?&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2011 14:40:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OnPostReload-macro-export-to-jpg-doesn-t-work/m-p/250147#M94997</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-10-18T14:40:08Z</dc:date>
    </item>
    <item>
      <title>OnPostReload macro export to .jpg doesn't work</title>
      <link>https://community.qlik.com/t5/QlikView/OnPostReload-macro-export-to-jpg-doesn-t-work/m-p/250148#M94998</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;Server build number is 10.0.8715.5 and client where reload works is version 10.00.8935.7 SR2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mariliis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2011 15:29:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OnPostReload-macro-export-to-jpg-doesn-t-work/m-p/250148#M94998</guid>
      <dc:creator />
      <dc:date>2011-10-18T15:29:21Z</dc:date>
    </item>
    <item>
      <title>OnPostReload macro export to .jpg doesn't work</title>
      <link>https://community.qlik.com/t5/QlikView/OnPostReload-macro-export-to-jpg-doesn-t-work/m-p/250149#M94999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;It's strange that you can export one format but not the others.&lt;/P&gt;&lt;P&gt;Are you using the /nosecurity tag on the .bat file? &lt;/P&gt;&lt;P&gt;qv.exe File.qvw /NoSecurity&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2011 15:35:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OnPostReload-macro-export-to-jpg-doesn-t-work/m-p/250149#M94999</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-10-18T15:35:01Z</dc:date>
    </item>
    <item>
      <title>OnPostReload macro export to .jpg doesn't work</title>
      <link>https://community.qlik.com/t5/QlikView/OnPostReload-macro-export-to-jpg-doesn-t-work/m-p/250150#M95000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We changed the scipt now and it's in linux server, but it should still work and it has NoSecurity specified&lt;/P&gt;&lt;P&gt;This is the script:&lt;/P&gt;&lt;P&gt; scp ${importFile} ${biServer}:${biLocation} &lt;/P&gt;&lt;P&gt;&amp;nbsp; ssh ${biServer} 'cmd /c e:\\QlikView\\qv.exe c:\\Documents\ and\ Settings\\All\ Users\\Application\ Data\\QlikTech\\Documents\\HW_MacAppStoreSales.qvw /r /NoSecurity'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First part of it is just to send one file needed for reload to the biServer where templates are held.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mariliis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 12:13:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OnPostReload-macro-export-to-jpg-doesn-t-work/m-p/250150#M95000</guid>
      <dc:creator />
      <dc:date>2011-10-25T12:13:45Z</dc:date>
    </item>
    <item>
      <title>OnPostReload macro export to .jpg doesn't work</title>
      <link>https://community.qlik.com/t5/QlikView/OnPostReload-macro-export-to-jpg-doesn-t-work/m-p/250151#M95001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure you activate the sheet for each chart object before exporting. And use WaitForIdle between all calls.&lt;/P&gt;&lt;P&gt;This had to be done in version 9. Maybe there is a similar problem in version 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QvDoc.Sheets("Sheet1").Activate&lt;/P&gt;&lt;P&gt;Qv.ActiveDocument.GetApplication.WaitForIdle&lt;/P&gt;&lt;P&gt;Set QvExp = QvDoc.GetSheetObject("CH01")&lt;/P&gt;&lt;P&gt;Qv.ActiveDocument.GetApplication.WaitForIdle&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QvDoc.Sheets("Sheet2").Activate&lt;/P&gt;&lt;P&gt;Qv.ActiveDocument.GetApplication.WaitForIdle&lt;/P&gt;&lt;P&gt;Set QvExp = QvDoc.GetSheetObject("CH02")&lt;/P&gt;&lt;P&gt;Qv.ActiveDocument.GetApplication.WaitForIdle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2011 14:02:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OnPostReload-macro-export-to-jpg-doesn-t-work/m-p/250151#M95001</guid>
      <dc:creator>jerrysvensson</dc:creator>
      <dc:date>2011-10-26T14:02:24Z</dc:date>
    </item>
  </channel>
</rss>

