<?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: VB script to set BG for text box in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/VB-script-to-set-BG-for-text-box/m-p/216909#M70173</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I try but still desn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the only way is to reload the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 May 2015 07:50:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-05-26T07:50:01Z</dc:date>
    <item>
      <title>VB script to set BG for text box</title>
      <link>https://community.qlik.com/t5/QlikView/VB-script-to-set-BG-for-text-box/m-p/216902#M70166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I could not found how to set background file for text box from VB script. I did find how to change option:&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;' prop.Layout.BkgMode = 2&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Where prop is text box properties.&lt;/P&gt;&lt;P style="font-weight: bold"&gt;But how to set file (layout.setBG("C:\image.jpg) style is open.&lt;/P&gt;&lt;P style="font-weight: bold"&gt;It would be nice to have!&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;Thanks beforehand if someone could assist with this!&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2009 15:32:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VB-script-to-set-BG-for-text-box/m-p/216902#M70166</guid>
      <dc:creator />
      <dc:date>2009-10-15T15:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: VB script to set BG for text box</title>
      <link>https://community.qlik.com/t5/QlikView/VB-script-to-set-BG-for-text-box/m-p/216903#M70167</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;It's exatly what I want too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nobody know ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2015 14:34:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VB-script-to-set-BG-for-text-box/m-p/216903#M70167</guid>
      <dc:creator />
      <dc:date>2015-05-25T14:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: VB script to set BG for text box</title>
      <link>https://community.qlik.com/t5/QlikView/VB-script-to-set-BG-for-text-box/m-p/216904#M70168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The ApiGuide,qvw provides an example for almost every member, Select the member (BkgMode) and then go to the "Automation Examples" sheet. On that sheet you may have to select a Class (ITextObjectLayout) and then you will see an example. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if that doesn't answer your question. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com" rel="nofollow"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2015 14:46:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VB-script-to-set-BG-for-text-box/m-p/216904#M70168</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-05-25T14:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: VB script to set BG for text box</title>
      <link>https://community.qlik.com/t5/QlikView/VB-script-to-set-BG-for-text-box/m-p/216905#M70169</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;Thanks for the quick reponse.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already try to find an answer on the API Guide.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I would like to do something like this :&lt;/P&gt;&lt;P&gt;set button = ActiveDocument.GetSheetObject("TX33")&lt;/P&gt;&lt;P&gt;set prop = button.GetProperties&lt;/P&gt;&lt;P&gt;prop.Layout.BkgMode = 2 'Image BKG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And after that, add something to specify which image used like :&lt;/P&gt;&lt;P&gt;prop.Layout.BkgImageSetting= "C:\Users\Desktop\Test.png"&lt;/P&gt;&lt;P&gt;But i don't know what is the right synthax...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thibault.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2015 14:53:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VB-script-to-set-BG-for-text-box/m-p/216905#M70169</guid>
      <dc:creator />
      <dc:date>2015-05-25T14:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: VB script to set BG for text box</title>
      <link>https://community.qlik.com/t5/QlikView/VB-script-to-set-BG-for-text-box/m-p/216906#M70170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure, but I think it may not be possible to select the background image using the API. The reason is that the image name is not a property of the object. Rather, the image stream is copied into the QVW as an encoded stream member (ImageBlog) when you select it from the UI. So you would need to figure out how to create one of those ImageBlobs, which I'm not sure is possible from the API. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com" rel="nofollow"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2015 15:09:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VB-script-to-set-BG-for-text-box/m-p/216906#M70170</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-05-25T15:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: VB script to set BG for text box</title>
      <link>https://community.qlik.com/t5/QlikView/VB-script-to-set-BG-for-text-box/m-p/216907#M70171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answer. I explains you why I want to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The simple solution is to modify the text and the representation of the text box like this : &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;set button = ActiveDocument.GetSheetObject("TX33")&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;set prop = button.GetProperties&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;prop.Layout.ImageRepresentation.Presentation=1&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;prop.Layout.text.v="C:\Test.png"&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;But my problem is that the picture don't refresh itself. &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If I modify the picture and save it with the same name (and not close Qlikview and re-open it), it doesn't update.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I try to find a solution to refresh it (without re-open QlikView) !&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I don't know if I'm understandable....&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Can U help me ?&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; font-weight: bold;"&gt;Thanks beforehand&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2015 15:19:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VB-script-to-set-BG-for-text-box/m-p/216907#M70171</guid>
      <dc:creator />
      <dc:date>2015-05-25T15:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: VB script to set BG for text box</title>
      <link>https://community.qlik.com/t5/QlikView/VB-script-to-set-BG-for-text-box/m-p/216908#M70172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try adding:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActiveDocument.GetApplication.Refresh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2015 16:55:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VB-script-to-set-BG-for-text-box/m-p/216908#M70172</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-05-25T16:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: VB script to set BG for text box</title>
      <link>https://community.qlik.com/t5/QlikView/VB-script-to-set-BG-for-text-box/m-p/216909#M70173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I try but still desn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the only way is to reload the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 07:50:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VB-script-to-set-BG-for-text-box/m-p/216909#M70173</guid>
      <dc:creator />
      <dc:date>2015-05-26T07:50:01Z</dc:date>
    </item>
  </channel>
</rss>

