<?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: Browse to add link to textbox</title><link>https://www.infopathdev.com:443/forums/thread/14934.aspx</link><pubDate>Thu, 14 Dec 2006 15:46:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14934</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14934.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14934</wfw:commentRss><description>You can import the template whenever you create a new project in Visual Studio.  This will disconnect any JScript code you may have written from the form, but the script.js file should still be there for reference.</description></item><item><title>Re: Browse to add link to textbox</title><link>https://www.infopathdev.com:443/forums/thread/14933.aspx</link><pubDate>Thu, 07 Dec 2006 17:21:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14933</guid><dc:creator>metnovas</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14933.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14933</wfw:commentRss><description>So I'm guessing that I'd have to build the form from scratch in VS or is there a way to cleanly import it?</description></item><item><title>Re: Browse to add link to textbox</title><link>https://www.infopathdev.com:443/forums/thread/14932.aspx</link><pubDate>Thu, 07 Dec 2006 15:54:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14932</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14932.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14932</wfw:commentRss><description>Hi metnovas,&lt;br /&gt;&lt;br /&gt;The code nukkumatti provided is C# and I believe managed code is the only way to achieve exactly what you are trying to do.  For this you will need Visual Studio 2003 or 2005 along with the Visual Studio tools for Office installed.  It would also be a good idea to install the InfoPath SDK if you haven't already.&lt;br /&gt;&lt;br /&gt;However, your second idea about simply using a file attachment control might work, but you will want to watch out for the extra bytes InfoPath adds to the byte stream whenever you attach it to the form.&lt;br /&gt;&lt;br /&gt;Hope this helps and good luck!</description></item><item><title>Re: Browse to add link to textbox</title><link>https://www.infopathdev.com:443/forums/thread/14931.aspx</link><pubDate>Wed, 06 Dec 2006 15:44:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14931</guid><dc:creator>metnovas</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14931.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14931</wfw:commentRss><description>I'm a newbie so I'm guessing that I set this to rules and code for the action and then form code (which seems to want jscript) but how do I get it to post the link to the textbox next to the submit button? Also, is it possible to just use the attach file control and have that submit the file to a database or is that not allowed? Thanks</description></item><item><title>Re: Browse to add link to textbox</title><link>https://www.infopathdev.com:443/forums/thread/14930.aspx</link><pubDate>Wed, 06 Dec 2006 12:55:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14930</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14930.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14930</wfw:commentRss><description>Hi metnovas,&lt;br /&gt;&lt;br /&gt;put this code in your button event (note: C#)&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;	IXMLDOMNode nodePicture = thisXDocument.DOM.selectSingleNode("my:myFields/my:PicturePath");&lt;br /&gt;			//create new OpenFileDialog object&lt;br /&gt;			OpenFileDialog ofdlg = new OpenFileDialog(); &lt;br /&gt;			ofdlg.Title = "File Browser" ; //sets the file dialog box title&lt;br /&gt;			ofdlg.InitialDirectory = @"c:\" ; //sets the initial directory displayed by the file dialog box&lt;br /&gt;			ofdlg.Filter = "All files (*.*)|*.*|All files (*.*)|*.*" ; //sets the current file name filter string&lt;br /&gt;			ofdlg.FilterIndex = 2 ; //sets the index of the filter currently selected in the file dialog box&lt;br /&gt;			ofdlg.RestoreDirectory = true ; //restore current directory before closing&lt;br /&gt;			if(ofdlg.ShowDialog() == DialogResult.OK) &lt;br /&gt;			{ &lt;br /&gt;				//write FileName/Path into the textbox&lt;br /&gt;				nodePicture.text = ofdlg.FileName ; &lt;br /&gt;			}&lt;/pre&gt;</description></item><item><title>Browse to add link to textbox</title><link>https://www.infopathdev.com:443/forums/thread/12996.aspx</link><pubDate>Wed, 06 Dec 2006 03:52:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12996</guid><dc:creator>metnovas</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12996.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12996</wfw:commentRss><description>I want to be able to have three text boxes each with a button that allows for browsing to a file (picture file in this instance) that adds a unc link to the text box. I have the form connecting to a db and run a SQL report that I want to be able to display picture links (screen shots) easily. Any help is appreciated. Thanks</description></item></channel></rss>