<?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 Scheduling Export image to Excel through a batch file not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Scheduling-Export-image-to-Excel-through-a-batch-file-not/m-p/360179#M133741</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;&lt;/P&gt;&lt;P&gt;We are trying to schedule an export image to excel through a batch file, so user's have access to the file to a shared location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using qlikview 9.0 SR6 for development.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the macro for export image to excel contains the below line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set obj = ActiveDocument.GetSheetObject("CH02")&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; obj.CopyBitmapToClipboard&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XLDoc.Sheets(kost).Range("B8").Select&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XLDoc.Sheets(kost).PasteSpecial DataType=wdPasteBitmap &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when the macro is excuting PostReload it does not get a reference to Chart CH02 &lt;/P&gt;&lt;P&gt;as the line ActiveDocument.GetSheetObject can not get the reference &lt;/P&gt;&lt;P&gt;(as the document is not active &amp;amp; getting reloaded through a batch file)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do any one of you have any solution (except using a publisher) for this macro to work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest &amp;amp; thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/cry.png" /&gt; Amar &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jun 2012 07:59:59 GMT</pubDate>
    <dc:creator>amars</dc:creator>
    <dc:date>2012-06-20T07:59:59Z</dc:date>
    <item>
      <title>Scheduling Export image to Excel through a batch file not working</title>
      <link>https://community.qlik.com/t5/QlikView/Scheduling-Export-image-to-Excel-through-a-batch-file-not/m-p/360179#M133741</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;&lt;/P&gt;&lt;P&gt;We are trying to schedule an export image to excel through a batch file, so user's have access to the file to a shared location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using qlikview 9.0 SR6 for development.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the macro for export image to excel contains the below line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set obj = ActiveDocument.GetSheetObject("CH02")&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; obj.CopyBitmapToClipboard&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XLDoc.Sheets(kost).Range("B8").Select&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XLDoc.Sheets(kost).PasteSpecial DataType=wdPasteBitmap &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when the macro is excuting PostReload it does not get a reference to Chart CH02 &lt;/P&gt;&lt;P&gt;as the line ActiveDocument.GetSheetObject can not get the reference &lt;/P&gt;&lt;P&gt;(as the document is not active &amp;amp; getting reloaded through a batch file)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do any one of you have any solution (except using a publisher) for this macro to work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest &amp;amp; thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/cry.png" /&gt; Amar &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2012 07:59:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scheduling-Export-image-to-Excel-through-a-batch-file-not/m-p/360179#M133741</guid>
      <dc:creator>amars</dc:creator>
      <dc:date>2012-06-20T07:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling Export image to Excel through a batch file not working</title>
      <link>https://community.qlik.com/t5/QlikView/Scheduling-Export-image-to-Excel-through-a-batch-file-not/m-p/360180#M133742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Amar,&lt;/P&gt;&lt;P&gt;if your scheduling it from windows scheduler then it should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or try the same on QV 9 SR7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2012 08:06:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scheduling-Export-image-to-Excel-through-a-batch-file-not/m-p/360180#M133742</guid>
      <dc:creator>deepakk</dc:creator>
      <dc:date>2012-06-20T08:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling Export image to Excel through a batch file not working</title>
      <link>https://community.qlik.com/t5/QlikView/Scheduling-Export-image-to-Excel-through-a-batch-file-not/m-p/360181#M133743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Deepak, it is not working through a windows schedular as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2012 08:40:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scheduling-Export-image-to-Excel-through-a-batch-file-not/m-p/360181#M133743</guid>
      <dc:creator>amars</dc:creator>
      <dc:date>2012-06-20T08:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling Export image to Excel through a batch file not working</title>
      <link>https://community.qlik.com/t5/QlikView/Scheduling-Export-image-to-Excel-through-a-batch-file-not/m-p/360182#M133744</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;Can you attach the application so that I can check it my end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2012 09:01:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scheduling-Export-image-to-Excel-through-a-batch-file-not/m-p/360182#M133744</guid>
      <dc:creator>deepakk</dc:creator>
      <dc:date>2012-06-20T09:01:14Z</dc:date>
    </item>
  </channel>
</rss>

