<?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 Re: Export image to excel using macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Export-image-to-excel-using-macro/m-p/1097824#M905872</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this thread , this might help you &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/62343"&gt;Export Straight Table to Excel - Images issue&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jun 2016 09:47:08 GMT</pubDate>
    <dc:creator>avinashelite</dc:creator>
    <dc:date>2016-06-23T09:47:08Z</dc:date>
    <item>
      <title>Export image to excel using macro</title>
      <link>https://community.qlik.com/t5/QlikView/Export-image-to-excel-using-macro/m-p/1097822#M905870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;Can we export image wise report in excel using macro?&lt;/P&gt;&lt;P&gt;I have a straight table containing each item image,Item code and sale amount, when using macro send this table into excel, I found the following scenario.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="image1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/128917_image1.JPG" style="max-width: 620px; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;This means in Location field that image location is printed. Not original image. Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code for send to excel:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub ExcelFile&lt;/P&gt;&lt;P&gt; strDate = CDate(Date)&lt;/P&gt;&lt;P&gt;&amp;nbsp; strDay = DatePart("d", strDate)&lt;/P&gt;&lt;P&gt;&amp;nbsp; strMonth = DatePart("m", strDate)&lt;/P&gt;&lt;P&gt;&amp;nbsp; strYear = DatePart("yyyy", strDate)&lt;/P&gt;&lt;P&gt;&amp;nbsp; If strDay &amp;lt; 10 Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; strDay = "0" &amp;amp; strDay&lt;/P&gt;&lt;P&gt;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;&amp;nbsp; If strMonth &amp;lt; 10 Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; strMonth = "0" &amp;amp; strMonth&lt;/P&gt;&lt;P&gt;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;&amp;nbsp; GetFormattedDate = strMonth &amp;amp; "-" &amp;amp; strDay &amp;amp; "-" &amp;amp; strYear&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt; Path = "G:\@_Qlik_Test\Work\Output\"&lt;/P&gt;&lt;P&gt; FileName = "Sales_" &amp;amp; GetFormattedDate&amp;nbsp; &amp;amp; ".xlsx"&lt;/P&gt;&lt;P&gt; set XLApp = CreateObject("Excel.Application")&lt;/P&gt;&lt;P&gt; XLApp.Visible = True&lt;/P&gt;&lt;P&gt; set XLDoc = XLApp.Workbooks.Add&lt;/P&gt;&lt;P&gt; ActiveDocument.GetSheetObject("CH01").CopyTableToClipboard true&lt;/P&gt;&lt;P&gt; XLDoc.Sheets(1).Paste()&lt;/P&gt;&lt;P&gt; XLDoc.Sheets(1).Columns("A:D").EntireColumn.AutoFit&lt;/P&gt;&lt;P&gt; XLDoc.Sheets(1).Columns("A:A").ColumnWidth = 15.57&lt;/P&gt;&lt;P&gt; XLDoc.Sheets(1).Columns("B:B").ColumnWidth = 12.43&lt;/P&gt;&lt;P&gt; XLDoc.Sheets(1).Columns("C:C").ColumnWidth = 15.29&lt;/P&gt;&lt;P&gt; XLDoc.Sheets(1).Columns("D:D").ColumnWidth = 15.57&lt;/P&gt;&lt;P&gt; XLDoc.Sheets(1).Name = "Export"&lt;/P&gt;&lt;P&gt; XLDoc.SaveAs Path &amp;amp; FileName&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-image-to-excel-using-macro/m-p/1097822#M905870</guid>
      <dc:creator>prabir_c</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Export image to excel using macro</title>
      <link>https://community.qlik.com/t5/QlikView/Export-image-to-excel-using-macro/m-p/1097823#M905871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prabir,&lt;/P&gt;&lt;P&gt;try this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;public function ExportImage&lt;BR /&gt; &lt;BR /&gt; ActiveDocument.GetApplication.WaitForIdle&lt;BR /&gt; &lt;BR /&gt; ActiveDocument.GetSheetByID("yourTableName").Activate&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; vFolder = ActiveDocument.GetVariable("vExportFolder").GetContent().String&lt;BR /&gt; &lt;BR /&gt; set obj = ActiveDocument.GetSheetByID("yourTableName")&lt;BR /&gt; &lt;BR /&gt; ActiveDocument.GetApplication.WaitForIdle&lt;BR /&gt; &lt;BR /&gt; fileName = "ExportScreen_" &amp;amp; replace(replace(replace(date() &amp;amp; "_" &amp;amp; time(), "/", ""), ".", ""), ":", "") &amp;amp; ".png"&lt;BR /&gt; &lt;BR /&gt; ActiveDocument.GetApplication.WaitForIdle&lt;BR /&gt; &lt;BR /&gt; obj.ExportBitmapToFile vFolder &amp;amp; fileName&lt;BR /&gt; &lt;BR /&gt; set obj = ActiveDocument.GetSheetObject("Imageexport")&lt;BR /&gt; &lt;BR /&gt; ActiveDocument.GetApplication.WaitForIdle&lt;BR /&gt; &lt;BR /&gt; fileName = "ExportScreen_" &amp;amp; replace(replace(replace(date() &amp;amp; "_" &amp;amp; time(), "/", ""), ".", ""), ":", "") &amp;amp; ".png"&lt;BR /&gt; &lt;BR /&gt; ActiveDocument.GetApplication.WaitForIdle&lt;BR /&gt; &lt;BR /&gt; obj.ExportBitmapToFile vFolder &amp;amp; fileName&lt;BR /&gt; end function &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hope that helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;beck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 09:30:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-image-to-excel-using-macro/m-p/1097823#M905871</guid>
      <dc:creator>beck_bakytbek</dc:creator>
      <dc:date>2016-06-23T09:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Export image to excel using macro</title>
      <link>https://community.qlik.com/t5/QlikView/Export-image-to-excel-using-macro/m-p/1097824#M905872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this thread , this might help you &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/62343"&gt;Export Straight Table to Excel - Images issue&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 09:47:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-image-to-excel-using-macro/m-p/1097824#M905872</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2016-06-23T09:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Export image to excel using macro</title>
      <link>https://community.qlik.com/t5/QlikView/Export-image-to-excel-using-macro/m-p/1097825#M905873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello beck,&lt;/P&gt;&lt;P&gt;If the Image is stored in Database as 'BLOB' type, it is possible to export image in excel.&lt;/P&gt;&lt;P&gt;But here, I have to fetch the Itemcode from database,and in an Folder Images are stored as Itemcode.jpg.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="image2.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/128950_image2.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;in Image folder all images are maintained externally such as KAY456419.jpg, KAY479579.jpg.&lt;/P&gt;&lt;P&gt;I am just copy the data of that table and paste in excel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;ActiveDocument.GetSheetObject("CH01").CopyTableToClipboard true&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;XLDoc.Sheets(1).Paste()&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;I am trying just copy the image also and paste it in excel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 09:55:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-image-to-excel-using-macro/m-p/1097825#M905873</guid>
      <dc:creator>prabir_c</dc:creator>
      <dc:date>2016-06-23T09:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Export image to excel using macro</title>
      <link>https://community.qlik.com/t5/QlikView/Export-image-to-excel-using-macro/m-p/1097826#M905874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prabir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry for my late responce, yes, it is possible, if you did not solve you proble, let me please know&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;beck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2016 09:21:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-image-to-excel-using-macro/m-p/1097826#M905874</guid>
      <dc:creator>beck_bakytbek</dc:creator>
      <dc:date>2016-07-05T09:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Export image to excel using macro</title>
      <link>https://community.qlik.com/t5/QlikView/Export-image-to-excel-using-macro/m-p/1097827#M905875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The macro allow us to sent the object image to excel, not images in data table format. It does not allow us to do some sorting or filtering in excels. I think the future Qlik should develop some imaging features.&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/plus.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2016 09:27:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-image-to-excel-using-macro/m-p/1097827#M905875</guid>
      <dc:creator />
      <dc:date>2016-07-05T09:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: Export image to excel using macro</title>
      <link>https://community.qlik.com/t5/QlikView/Export-image-to-excel-using-macro/m-p/1097828#M905876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any way to copy each image and data also? I have tried many times, but failed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2016 10:11:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-image-to-excel-using-macro/m-p/1097828#M905876</guid>
      <dc:creator>prabir_c</dc:creator>
      <dc:date>2016-08-04T10:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Export image to excel using macro</title>
      <link>https://community.qlik.com/t5/QlikView/Export-image-to-excel-using-macro/m-p/1097829#M905877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THIS I HAVE TO WRITE IN QIKVIEW AFER PRESSING CNTRL + M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Sep 2017 05:52:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-image-to-excel-using-macro/m-p/1097829#M905877</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-06T05:52:14Z</dc:date>
    </item>
  </channel>
</rss>

