<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Infopath, FormServer and manadged code</title><link>https://www.infopathdev.com:443/forums/thread/19098.aspx</link><pubDate>Mon, 16 Apr 2007 07:39:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19098</guid><dc:creator>davidair</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19098.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=19098</wfw:commentRss><description>&lt;p&gt;I believe the name of the current form is stored in the this.Uri property (there should be no difference between FormServer or regular InfoPath).&lt;/p&gt;&lt;p&gt;Hence, the code would look like this:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;font size="2"&gt;.MainDataSource.CreateNavigator().SelectSingleNode(&lt;p&gt;&lt;font color="#a31515" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;/my:myFields/my:field1&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;font size="2"&gt;.NamespaceManager).SetValue(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;font size="2"&gt;.Uri);&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font color="#a31515" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;/my:myFields/my:field1&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;font size="2"&gt;.NamespaceManager).SetValue(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;font size="2"&gt;.Uri);&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font size="2"&gt;Where &lt;font color="#a31515"&gt;&amp;quot;/my:myFields/my:field1&amp;quot; &lt;/font&gt;is the xpath to the field you want to set.&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2"&gt;Hope that helps,&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2"&gt;David.&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Infopath, FormServer and manadged code</title><link>https://www.infopathdev.com:443/forums/thread/18542.aspx</link><pubDate>Tue, 23 Jan 2007 10:55:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:18542</guid><dc:creator>fra_sylvain</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/18542.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=18542</wfw:commentRss><description>Hello, &lt;br /&gt;I've got one question concerning Microsoft InfoPath 2007 and FormServer.&lt;br /&gt;I want to fill a field in my form, with the file name.(In C#).&lt;br /&gt;What can i do ?&lt;br /&gt;Thanks&lt;br /&gt;Sylvain</description></item></channel></rss>