<?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 script to export qlikview sheet into image in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/script-to-export-qlikview-sheet-into-image/m-p/97588#M605380</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello qlikers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have witten a VBS script to export sheet into image:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;public function ExportImage&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;ActiveDocument.GetApplication.WaitForIdle&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;ActiveDocument.GetSheetByID("SH01").Activate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;vFolder = ActiveDocument.GetVariable("vExportFolder").GetContent().String&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;'export&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;set obj = ActiveDocument.GetSheetByID("SH01")&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;ActiveDocument.GetApplication.WaitForIdle&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;fileName = "ExportScreen_" &amp;amp; replace(replace(replace(date() &amp;amp; "_" &amp;amp; time(), "/", ""), ".", ""), ":", "") &amp;amp; ".png"&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;ActiveDocument.GetApplication.WaitForIdle&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;'ActiveDocument.ActiveSheet.FitZoomToWindow&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;obj.ExportBitmapToFile vFolder &amp;amp; fileName&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;end function&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;script export image correctly when qlikview app is open and script run &lt;SPAN style="font-size: 13.3333px;"&gt;from a button.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I set a trigger to export this image when app is loaded but I get a problem with zoom in the image, the image only contain one small part of the dash.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;i'm guessing that it's because qlik is not opened in full screen when loaded because when I execute the button and qlik is not in full screen i'm getting the same issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I have tried to use the following statement to fit to zoom &lt;SPAN style="font-size: 13.3333px;"&gt;'ActiveDocument.ActiveSheet.FitZoomToWindow but I fails to solve the problem&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Can you please help?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;A href="https://community.qlik.com/qlik-users/206168"&gt;youssefbelloum&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jul 2018 15:06:28 GMT</pubDate>
    <dc:creator>kfoudhaily</dc:creator>
    <dc:date>2018-07-17T15:06:28Z</dc:date>
    <item>
      <title>script to export qlikview sheet into image</title>
      <link>https://community.qlik.com/t5/QlikView/script-to-export-qlikview-sheet-into-image/m-p/97588#M605380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello qlikers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have witten a VBS script to export sheet into image:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;public function ExportImage&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;ActiveDocument.GetApplication.WaitForIdle&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;ActiveDocument.GetSheetByID("SH01").Activate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;vFolder = ActiveDocument.GetVariable("vExportFolder").GetContent().String&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;'export&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;set obj = ActiveDocument.GetSheetByID("SH01")&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;ActiveDocument.GetApplication.WaitForIdle&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;fileName = "ExportScreen_" &amp;amp; replace(replace(replace(date() &amp;amp; "_" &amp;amp; time(), "/", ""), ".", ""), ":", "") &amp;amp; ".png"&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;ActiveDocument.GetApplication.WaitForIdle&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;'ActiveDocument.ActiveSheet.FitZoomToWindow&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;obj.ExportBitmapToFile vFolder &amp;amp; fileName&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;end function&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;script export image correctly when qlikview app is open and script run &lt;SPAN style="font-size: 13.3333px;"&gt;from a button.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I set a trigger to export this image when app is loaded but I get a problem with zoom in the image, the image only contain one small part of the dash.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;i'm guessing that it's because qlik is not opened in full screen when loaded because when I execute the button and qlik is not in full screen i'm getting the same issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I have tried to use the following statement to fit to zoom &lt;SPAN style="font-size: 13.3333px;"&gt;'ActiveDocument.ActiveSheet.FitZoomToWindow but I fails to solve the problem&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Can you please help?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;A href="https://community.qlik.com/qlik-users/206168"&gt;youssefbelloum&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2018 15:06:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-to-export-qlikview-sheet-into-image/m-p/97588#M605380</guid>
      <dc:creator>kfoudhaily</dc:creator>
      <dc:date>2018-07-17T15:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: script to export qlikview sheet into image</title>
      <link>https://community.qlik.com/t5/QlikView/script-to-export-qlikview-sheet-into-image/m-p/97589#M605381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not very strong in Macro functionality... may be &lt;A href="https://community.qlik.com/qlik-users/27943"&gt;marcus_sommer&lt;/A&gt;‌ or &lt;A href="https://community.qlik.com/qlik-users/178253"&gt;tamilarasu&lt;/A&gt;‌ can offer help here&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2018 15:09:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-to-export-qlikview-sheet-into-image/m-p/97589#M605381</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-07-17T15:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: script to export qlikview sheet into image</title>
      <link>https://community.qlik.com/t5/QlikView/script-to-export-qlikview-sheet-into-image/m-p/97590#M605382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you could use something like this within a batch to open QlikView maximized:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start &lt;STRONG&gt;/max&lt;/STRONG&gt; \\YourServer\YourDrive\QlikViewClient\Qv.exe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2018 15:28:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-to-export-qlikview-sheet-into-image/m-p/97590#M605382</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-07-17T15:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: script to export qlikview sheet into image</title>
      <link>https://community.qlik.com/t5/QlikView/script-to-export-qlikview-sheet-into-image/m-p/97591#M605383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you &lt;A href="https://community.qlik.com/qlik-users/2454"&gt;sunny&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2018 15:53:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-to-export-qlikview-sheet-into-image/m-p/97591#M605383</guid>
      <dc:creator>kfoudhaily</dc:creator>
      <dc:date>2018-07-17T15:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: script to export qlikview sheet into image</title>
      <link>https://community.qlik.com/t5/QlikView/script-to-export-qlikview-sheet-into-image/m-p/97592#M605384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A href="https://community.qlik.com/qlik-users/27943"&gt;marcus_sommer&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;i'm not sure I understand.&lt;BR /&gt;I would like to run the up independently from server please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2018 15:54:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-to-export-qlikview-sheet-into-image/m-p/97592#M605384</guid>
      <dc:creator>kfoudhaily</dc:creator>
      <dc:date>2018-07-17T15:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: script to export qlikview sheet into image</title>
      <link>https://community.qlik.com/t5/QlikView/script-to-export-qlikview-sheet-into-image/m-p/97593#M605385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;‌sorry Khalil, necer used macros before...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2018 18:23:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-to-export-qlikview-sheet-into-image/m-p/97593#M605385</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-07-17T18:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: script to export qlikview sheet into image</title>
      <link>https://community.qlik.com/t5/QlikView/script-to-export-qlikview-sheet-into-image/m-p/97594#M605386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The qmc-reload runs no macros. But you could trigger per EXECUTE statement external tasks and scripts to do the job. It's not quite easy and depends on your environment and requirements which ways are workable rspectively most suitable for your task. There are lot of threads available here in the community to these topic. Here some of them which should give you a good starting point:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-containerid="2061" data-containertype="14" data-objectid="378294" data-objecttype="2" href="https://community.qlik.com/message/378294#378294"&gt;Re: Vbs - passing parameters to opendoc or opendocex&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-containerid="2051" data-containertype="14" data-objectid="1190138" data-objecttype="2" href="https://community.qlik.com/message/1190138#1190138"&gt;Re: Passing variable to vbs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-containerid="1224" data-containertype="700" data-objectid="812162" data-objecttype="2" href="https://community.qlik.com/message/812162#812162"&gt;Re: How can I run a macro on QMC after reload?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-containerid="2003" data-containertype="14" data-objectid="1303852" data-objecttype="2" href="https://community.qlik.com/message/1303852#1303852"&gt;Re: EXECUTE command in script&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>Wed, 18 Jul 2018 05:36:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-to-export-qlikview-sheet-into-image/m-p/97594#M605386</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-07-18T05:36:56Z</dc:date>
    </item>
  </channel>
</rss>

