<?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: How to get file (Form) name?</title><link>https://www.infopathdev.com:443/forums/thread/29530.aspx</link><pubDate>Thu, 19 Jun 2008 21:54:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29530</guid><dc:creator>deborahh</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29530.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=29530</wfw:commentRss><description>&lt;p&gt;You can get the path using XDocument.URI using VBScript. I&amp;#39;ve used it to pass the information to a field in the form. From that you can parse out the file name.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;p&gt;strPath = XDocument.URI&lt;/p&gt;
&lt;p&gt;dim oInfo&lt;br /&gt;set oInfo = XDocument.DOM.selectSingleNode(&amp;quot;//my:FormPath&amp;quot;)&lt;br /&gt;oInfo.text = strPath&lt;/p&gt;</description></item><item><title>Re: How to get file (Form) name?</title><link>https://www.infopathdev.com:443/forums/thread/25949.aspx</link><pubDate>Fri, 25 Jan 2008 22:51:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25949</guid><dc:creator>KoopLaFez</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25949.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=25949</wfw:commentRss><description>&lt;p&gt;Did you ever figure out how to do this in code?&amp;nbsp; I&amp;#39;m having a similar problem&lt;/p&gt;</description></item><item><title>Re: How to get file (Form) name?</title><link>https://www.infopathdev.com:443/forums/thread/14634.aspx</link><pubDate>Mon, 05 Jun 2006 10:35:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14634</guid><dc:creator>liorlankri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14634.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14634</wfw:commentRss><description>I want to do it in my code ! I know that there is option doing it by the XDocument object. How to do it??</description></item><item><title>Re: How to get file (Form) name?</title><link>https://www.infopathdev.com:443/forums/thread/14633.aspx</link><pubDate>Mon, 05 Jun 2006 10:21:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14633</guid><dc:creator>Abhishek</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14633.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14633</wfw:commentRss><description>Hi Liorlankri&lt;br /&gt;U can do it in a simpler way.&lt;br /&gt;1)Keep a field in ur datasource called FormName.&lt;br /&gt;2)U can update this field each time u submit or save the form.&lt;br /&gt;3)If u use a Submit dataconnection(eg to SharePoint),then there is an option to specify or select the Form Name from a field in the Datasource.&lt;br /&gt;Use this option to specify the name from the FormName field.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Abhishek</description></item><item><title>How to get file (Form) name?</title><link>https://www.infopathdev.com:443/forums/thread/12889.aspx</link><pubDate>Mon, 05 Jun 2006 07:58:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12889</guid><dc:creator>liorlankri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12889.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12889</wfw:commentRss><description>What is the code (in VBscript) that give me the file (form) name?</description></item></channel></rss>