<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Finding image within Picture library</title><link>https://www.infopathdev.com:443/forums/thread/62692.aspx</link><pubDate>Fri, 31 Dec 2010 15:18:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:62692</guid><dc:creator>Potemkine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/62692.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=62692</wfw:commentRss><description>&lt;p&gt;Hi, I suggest you&amp;nbsp;to use C# or vb and not C#(compatible 2003) because it&amp;#39;s really easier to set rich text value on some field. &lt;/p&gt;
&lt;p&gt;You have to get all your image path for that you can use some web service with code or with a data source. You have to use a default&amp;nbsp;view wich show you all the file without folder if you use data sources. &lt;/p&gt;
&lt;p&gt;After that you can bind a drop down to your list, add an event on it and add some code like:&lt;/p&gt;
&lt;p&gt;&lt;span class="tab"&gt;//build here your URL&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="tab"&gt;string url=&amp;quot;My url&amp;quot;;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="tab"&gt;&amp;nbsp;XPathNavigator &lt;span class="tab"&gt;node = &lt;/span&gt;this.MainDataSource.CreateNavigator().SelectSingleNode(&amp;quot;RICHTEXT_XPATH&amp;quot;, this.NamespaceManager);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="tab"&gt;node.InnerXml = &amp;quot;&amp;lt;img xmlns=\&amp;quot;http://www.w3.org/1999/xhtml\&amp;quot; src=\&amp;quot;&amp;quot; + url + &amp;quot;\&amp;quot;/&amp;gt;&amp;quot;;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;On a rich text box.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Finding image within Picture library</title><link>https://www.infopathdev.com:443/forums/thread/62689.aspx</link><pubDate>Fri, 31 Dec 2010 12:04:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:62689</guid><dc:creator>venkatzeus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/62689.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=62689</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have a picture library, which has multiple folders. Images are stored inside each of the folders.&lt;/p&gt;
&lt;p&gt;I am using Infopath 2010 filler form to create a form, as i need to create the form which should work online as well as offline.&lt;/p&gt;
&lt;p&gt;In the infopath form, i have added a textbox, button and picture tool.&lt;/p&gt;
&lt;p&gt;The picture library is called &amp;quot;MyImageLibrary&amp;quot;. xpath value of textbox is &amp;quot;/my:myFields/my:fieldImageName&amp;quot;&amp;nbsp; xpath value of the Picture is &amp;quot;/my:myFields/my:Image1&amp;quot;&lt;/p&gt;
&lt;p&gt;When the user inputs the name of the image in the textbox and clicks on button, i want to search the whole of picture library(all the folders inside), and if an image is found, show that image in the picture box in the infopath form.&lt;/p&gt;
&lt;p&gt;I want to achieve the above functionality in Online as well as offline scenario.&lt;/p&gt;
&lt;p&gt;How to achieve this?&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;</description></item></channel></rss>