<?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 Loading images using a macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loading-images-using-a-macro/m-p/278958#M497745</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes i meant pop up boxes, opened by a macro. I'll give the table box method a try first though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Sep 2011 13:15:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-09-06T13:15:19Z</dc:date>
    <item>
      <title>Loading images using a macro</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-images-using-a-macro/m-p/278949#M497730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm fairly new to qlikview and with one project under my belt I'm looking at a new one which is a lot more challenging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically the document will need to retrieve images from a file store on the network based on the criteria set in the list boxes. I can't load the images into the document as there could potentially be thousands of images. I've started playing around to prove this can be done and decided that a macro is the only approach. So far I can click on a value in a listbox and then push a button, this triggers a macro which goes and retrieives the image and displays it in a container for me which is great. I can also do this for multiple images as well now, but I have 2 problems...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I don't know the syntax to set the Image Strech to Keep Aspect (cant seem to find it anywhere for Foreground image&lt;/P&gt;&lt;P&gt;2. The 2nd, 3rd pics that I load are very blurry and lose quality, if I load the images without a container the quality is perfect&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the Macro I have so far:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub OpenPics_Cont&lt;/P&gt;&lt;P&gt;IMG_PATH = "C:\Users\Public\Pictures\Sample Pictures\"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set ContainerObj = ActiveDocument.Sheets("Main").CreateContainer&lt;/P&gt;&lt;P&gt;set ContProp=ContainerObj.GetProperties&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set LB = ActiveDocument.GetSHeetObject("LB01")&lt;/P&gt;&lt;P&gt;pg=LB.GetPossibleValues&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for i=lbound(pg) to ubound(pg)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set mytext=ActiveDocument.ActiveSheet.CreateTextObject&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; prop=mytext.GetProperties&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; prop.Layout.ImageRepresentation.Presentation = 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; prop.Layout.Text.v = "='" &amp;amp; IMG_PATH &amp;amp; pg(i) &amp;amp; ".jpg'"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mytext.SetProperties prop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ContProp.ContainedObjects.Add &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ContProp.SingleObjectMode=1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ContProp.SingleObjectStyle=1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ContProp.ShowObjectTypeIcons=true&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ContProp.ContainedObjects.Item(i).Id =prop.Layout.Frame.ObjectId&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ContProp.ContainedObjects.Item(i).Text.v = pg(i)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ContainerObj.SetProperties ContProp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mytext.close&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; next&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any idea's how I might be able to adjust the aspect of the image and why the image quality is so bad.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2011 09:43:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-images-using-a-macro/m-p/278949#M497730</guid>
      <dc:creator />
      <dc:date>2011-08-17T09:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Loading images using a macro</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-images-using-a-macro/m-p/278950#M497731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Let's try this for image stretching&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub Stretch&lt;/P&gt;&lt;P&gt;set bu=ActiveDocument.GetSheetObject("BU01")&lt;/P&gt;&lt;P&gt;set prop=bu.GetProperties&lt;/P&gt;&lt;P&gt;prop.BkImageSettings.ImageStyle.StretchMode=1 'fill&lt;/P&gt;&lt;P&gt;bu.SetProperties prop&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know it works or not&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2011 17:18:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-images-using-a-macro/m-p/278950#M497731</guid>
      <dc:creator />
      <dc:date>2011-08-17T17:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Loading images using a macro</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-images-using-a-macro/m-p/278951#M497732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you looked into the INFO functionality built in to QV?&amp;nbsp; This allows you to link external files to a field value.&amp;nbsp; Check the help file for the topic "Info"&amp;nbsp;&amp;nbsp; -Isaiah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2011 17:52:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-images-using-a-macro/m-p/278951#M497732</guid>
      <dc:creator>isaiah82</dc:creator>
      <dc:date>2011-08-17T17:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Loading images using a macro</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-images-using-a-macro/m-p/278952#M497735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;@&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/ravikumar_ajzaas" id="jive-535582108201778183744"&gt;ravikumar_ajzaas&lt;/A&gt;&lt;/SPAN&gt; - no this didnt work, Im beginning to wonder whether the property is available through the APi to stretch the image for a foreground picture.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess the alternative is to display a link to the image which will open in a browser page or something but I'd prefer to open the Image in qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 14:03:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-images-using-a-macro/m-p/278952#M497735</guid>
      <dc:creator />
      <dc:date>2011-08-18T14:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Loading images using a macro</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-images-using-a-macro/m-p/278953#M497737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Isiah Weed - I didnt want to use this functionality, wouldnt this make a copy of the image and store it in the qlikview document, maybe I misunderstood how this works? The document is likely to be reloaded twice/thrice a day and will the amount of data will get large quite rapidly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 14:06:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-images-using-a-macro/m-p/278953#M497737</guid>
      <dc:creator />
      <dc:date>2011-08-18T14:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Loading images using a macro</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-images-using-a-macro/m-p/278954#M497740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With INFO LOAD you only embed the images in the QVW if you use the BUNDLE prefix.&amp;nbsp; "Regular" INFO LOAD links to the file externally and it is only opened when called.&amp;nbsp; I have the same issue as you; I would never be able to embed all of the images into my QVW for size constraints.&amp;nbsp; Try the info load (no bundle) in a small test file and I think you'll be presently surprised.&amp;nbsp; -Isaiah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 14:14:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-images-using-a-macro/m-p/278954#M497740</guid>
      <dc:creator>isaiah82</dc:creator>
      <dc:date>2011-08-18T14:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: Loading images using a macro</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-images-using-a-macro/m-p/278955#M497741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Isaiah, I'll give this a try with the example I already have. I'll let you know how I get on with this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 17:05:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-images-using-a-macro/m-p/278955#M497741</guid>
      <dc:creator />
      <dc:date>2011-08-18T17:05:40Z</dc:date>
    </item>
    <item>
      <title>Loading images using a macro</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-images-using-a-macro/m-p/278956#M497743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just got back to this now... I tried the info load for the pictures and it works. Thanks a lot. Though it appears Im restricted to viewing one image at a time in a textbox. Which is no big deal the user can see the possible images related to the their criteria in the picture listbox and click each one as they wish, but oout of interest is it possible to view multiple images in multiple textboxes without the use of macros?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2011 11:46:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-images-using-a-macro/m-p/278956#M497743</guid>
      <dc:creator />
      <dc:date>2011-09-06T11:46:31Z</dc:date>
    </item>
    <item>
      <title>Loading images using a macro</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-images-using-a-macro/m-p/278957#M497744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you say text box I assume you mean a popup window (e.g. you've got a button with action = "Show Information"?)&amp;nbsp; Or are you actually showing the image inside of a textbox?&amp;nbsp; Moot point though really; I don't think you'll be able to cycle through the possible values without a macro, although that's not to completely say something couldn't be done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead you can create a table box (or straight/pivot table) and adding your field with Info as a dimension.&amp;nbsp; Then pick "Info as Image" in Advanced Field Settings (this is on the Presentation tab in table box properties.)&amp;nbsp; Remember to wrap text a few lines.&amp;nbsp; -Isaiah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2011 12:59:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-images-using-a-macro/m-p/278957#M497744</guid>
      <dc:creator>isaiah82</dc:creator>
      <dc:date>2011-09-06T12:59:33Z</dc:date>
    </item>
    <item>
      <title>Loading images using a macro</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-images-using-a-macro/m-p/278958#M497745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes i meant pop up boxes, opened by a macro. I'll give the table box method a try first though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2011 13:15:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-images-using-a-macro/m-p/278958#M497745</guid>
      <dc:creator />
      <dc:date>2011-09-06T13:15:19Z</dc:date>
    </item>
    <item>
      <title>Loading images using a macro</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-images-using-a-macro/m-p/278959#M497747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can create a largish table box set the size and disable move/size then it will show 1 image and the scrollbar will be available for instances of multiple images.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That will work great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for all your help Isaiah.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2011 16:22:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-images-using-a-macro/m-p/278959#M497747</guid>
      <dc:creator />
      <dc:date>2011-09-06T16:22:06Z</dc:date>
    </item>
  </channel>
</rss>

