Add a logo to browser based formIs there a way to add a logo that is held within a sharepoint pic library to a browser based web form?© 2009 Microsoft Corporation. All rights reserved.Sat, 18 Jul 2009 04:04:26 Z9c175d9d-21c5-466f-8cbb-5502becd1b03http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/9c175d9d-21c5-466f-8cbb-5502becd1b03#9c175d9d-21c5-466f-8cbb-5502becd1b03http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/9c175d9d-21c5-466f-8cbb-5502becd1b03#9c175d9d-21c5-466f-8cbb-5502becd1b03Garry001http://social.msdn.microsoft.com/Profile/en-US/?user=Garry001Add a logo to browser based formIs there a way to add a logo that is held within a sharepoint pic library to a browser based web form?Thu, 02 Jul 2009 13:47:37 Z2009-07-02T13:47:37Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/9c175d9d-21c5-466f-8cbb-5502becd1b03#3fe2d299-fe3d-4ab6-8b56-dfdf8e056b16http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/9c175d9d-21c5-466f-8cbb-5502becd1b03#3fe2d299-fe3d-4ab6-8b56-dfdf8e056b16Anuma - GGKTechhttp://social.msdn.microsoft.com/Profile/en-US/?user=Anuma%20-%20GGKTechAdd a logo to browser based form<p>Hi,<br/><br/>Here are the links to use images in the browser form.</p> <p><a href="http://www.bizsupportonline.net/browserforms/display-images-infopath-browser-form.htm"><span style="color:#000000">http://www.bizsupportonline.net/browserforms/display-images-infopath-browser-form.htm</span></a><br/><a href="http://www.bizsupportonline.net/browserforms/display-images-browser-form-repeating-table-rich-text-box-control.htm"><span style="color:#000000">http://www.bizsupportonline.net/browserforms/display-images-browser-form-repeating-table-rich-text-box-control.htm</span></a></p><hr class="sig">Anuma Chinthapalli / http://www.GGKTech.comThu, 02 Jul 2009 14:28:29 Z2009-07-02T14:28:29Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/9c175d9d-21c5-466f-8cbb-5502becd1b03#ed3e5a71-82b4-45b7-b808-4305fd2616b9http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/9c175d9d-21c5-466f-8cbb-5502becd1b03#ed3e5a71-82b4-45b7-b808-4305fd2616b9Clayton Cobbhttp://social.msdn.microsoft.com/Profile/en-US/?user=Clayton%20CobbAdd a logo to browser based formDid you try already and it didn't work?  You can just insert it into your form template without it being hosted anywhere.  If you want it to be referencing something in a doc lib, then you'll have to create a data connection to that lib and display it in a picture control.  This is not the same as just making it part of your form template on the canvas, but if that's what you want to do...<hr class="sig">SharePoint Architect || <a href="http://claytoncobb.wordpress.com">My Blog</a>Thu, 02 Jul 2009 14:28:37 Z2009-07-02T14:28:37Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/9c175d9d-21c5-466f-8cbb-5502becd1b03#388de15f-87e2-4721-9b74-be19da4aa3c7http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/9c175d9d-21c5-466f-8cbb-5502becd1b03#388de15f-87e2-4721-9b74-be19da4aa3c7Garry001http://social.msdn.microsoft.com/Profile/en-US/?user=Garry001Add a logo to browser based formThe article is fine regarding setting up a data retrieve connection into the library.<br/>But after that it starts going on about adding it to repeating table.<br/><br/>All I want to do is select one image from the library, not loop through them all and add them to a repeating section.<br/><br/>Does anyone have instructions on what to do after the data connection has been setup?Thu, 02 Jul 2009 15:02:43 Z2009-07-02T15:02:43Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/9c175d9d-21c5-466f-8cbb-5502becd1b03#3c6d0713-3ff8-482f-91dc-c4fd6350e7c0http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/9c175d9d-21c5-466f-8cbb-5502becd1b03#3c6d0713-3ff8-482f-91dc-c4fd6350e7c0Clayton Cobbhttp://social.msdn.microsoft.com/Profile/en-US/?user=Clayton%20CobbAdd a logo to browser based formJust select it, put it into a data element (using logic to pick that exact pic based on some metadata like filename) on your main data source, drag that element to the canvas, and make it a picture control. <hr class="sig">SharePoint Architect || <a href="http://claytoncobb.wordpress.com">My Blog</a>Thu, 02 Jul 2009 17:23:04 Z2009-07-02T17:23:04Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/9c175d9d-21c5-466f-8cbb-5502becd1b03#ab4ee20d-a1db-40ac-9fde-40f227c038c5http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/9c175d9d-21c5-466f-8cbb-5502becd1b03#ab4ee20d-a1db-40ac-9fde-40f227c038c5Garry001http://social.msdn.microsoft.com/Profile/en-US/?user=Garry001Add a logo to browser based formClayton,<br/><br/>can you expand on this.<br/><br/>1.The data connection has been setup.<br/>2. Insert rich text box into form and filter it (use the new data connection and filter on the name of the image)<br/>3. There is no option to make it a picture control as it is browser enabled.<br/>Fri, 03 Jul 2009 08:47:52 Z2009-07-03T08:47:52Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/9c175d9d-21c5-466f-8cbb-5502becd1b03#06b9a90e-dd7e-41c7-a75e-fb0726d86c38http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/9c175d9d-21c5-466f-8cbb-5502becd1b03#06b9a90e-dd7e-41c7-a75e-fb0726d86c38Clayton Cobbhttp://social.msdn.microsoft.com/Profile/en-US/?user=Clayton%20CobbAdd a logo to browser based formOh yeah - browser form.  I'll have to look back at my form that does it to remember the settings.<hr class="sig">SharePoint Architect || <a href="http://claytoncobb.wordpress.com">My Blog</a>Fri, 03 Jul 2009 08:52:43 Z2009-07-03T08:52:43Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/9c175d9d-21c5-466f-8cbb-5502becd1b03#cc1347d3-4335-45e4-8d22-5634384e4f65http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/9c175d9d-21c5-466f-8cbb-5502becd1b03#cc1347d3-4335-45e4-8d22-5634384e4f65SYM Wong-A-Tonhttp://social.msdn.microsoft.com/Profile/en-US/?user=SYM%20Wong-A-TonAdd a logo to browser based form<blockquote>The article is fine regarding setting up a data retrieve connection into the library.<br/>But after that it starts going on about adding it to repeating table.<br/><br/>All I want to do is select one image from the library, not loop through them all and add them to a repeating section.<br/><br/>Does anyone have instructions on what to do after the data connection has been setup?</blockquote> <br/>You don't have to use a data connection, nor a repeating table, if you just want to use 1 image and the URL to the image will not change. I've simplified the code for you in this <a href="http://www.bizsupportonline.net/blog/2009/07/add-logo-sharepoint-picture-library-infopath-browser-form/">blog post</a>. <hr class="sig">S.Y.M. Wong-A-Ton, <a href="http://www.bizsupportonline.net/">http://www.bizsupportonline.net</a> (100+ <a href="http://www.bizsupportonline.net/infopath2007/">InfoPath articles</a>, tutorials, and solutions), <a href="http://www.bizsupportonline.net/blog/">InfoPath blog</a>, <a href="http://www.bizsupportonline.net/infopath2007/videos/">InfoPath video tutorials</a>Sun, 05 Jul 2009 07:54:14 Z2009-07-05T07:54:14Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/9c175d9d-21c5-466f-8cbb-5502becd1b03#145a6fa5-ae6a-45e1-af68-6a0b354fab76http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/9c175d9d-21c5-466f-8cbb-5502becd1b03#145a6fa5-ae6a-45e1-af68-6a0b354fab76Garry001http://social.msdn.microsoft.com/Profile/en-US/?user=Garry001Add a logo to browser based form<p>Thanks for the blog, however when I try and paste this into the loading event after this....<br/><br/><span style="font-size:x-small"><font size=2> <p> </p> </font></span></p> <p><span style="font-size:x-small;color:#0000ff">Public</span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#0000ff">Sub</span><span style="font-size:x-small"> FormEvents_Loading(</span><span style="font-size:x-small;color:#0000ff">ByVal</span><span style="font-size:x-small"> sender </span><span style="font-size:x-small;color:#0000ff">As</span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#0000ff">Object</span><span style="font-size:x-small">, </span><span style="font-size:x-small;color:#0000ff">ByVal</span><span style="font-size:x-small"> e </span><span style="font-size:x-small;color:#0000ff">As</span><span style="font-size:x-small"> LoadingEventArgs)<font size=2> <p> </p> </font></span></p> <p><span style="font-size:x-small;color:#008000">' Write your code here.<br/><br/>I receive a number of errors including...<br/><br/>Error 1 'XPathNavigator' is a type and cannot be used as an expression. C:\Documents and Settings\sharepoint\My Documents\InfoPath Projects\Template1\FormCode.vb 30 1 Template1<br/></span></p> <p><span style="font-size:x-small;color:#008000">Am I missing something simple?</span></p>Fri, 17 Jul 2009 13:38:23 Z2009-07-17T13:38:23Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/9c175d9d-21c5-466f-8cbb-5502becd1b03#7a1df991-d0a6-4ebe-99dc-e22544b5de9ehttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/9c175d9d-21c5-466f-8cbb-5502becd1b03#7a1df991-d0a6-4ebe-99dc-e22544b5de9eSYM Wong-A-Tonhttp://social.msdn.microsoft.com/Profile/en-US/?user=SYM%20Wong-A-TonAdd a logo to browser based formIt looks like you want to use Visual Basic code instead of C#? The code in the blog post is C#. So you can do one of two things: <div><ol> <li><a href="http://www.bizsupportonline.net/blog/2009/06/how-to-set-the-programming-language-in-infopath-2007/">Set the programming language for your InfoPath form template</a> to use C#.</li> <li>Convert the C# code to Visual Basic.</li> </ol></div> <div><br/></div> <div>I've updated the post with the Visual Basic version, if you want to go with the second option.</div><hr class="sig">S.Y.M. Wong-A-Ton, <a href="http://www.bizsupportonline.net/">http://www.bizsupportonline.net</a> (100+ <a href="http://www.bizsupportonline.net/infopath2007/">InfoPath articles</a>, tutorials, and solutions)Sat, 18 Jul 2009 04:04:26 Z2009-07-18T04:04:26Z