<?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: Access name of currently opened file in InfoPath ?</title><link>https://www.infopathdev.com:443/forums/thread/51986.aspx</link><pubDate>Sat, 20 Feb 2010 14:41:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51986</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51986.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=51986</wfw:commentRss><description>&lt;p&gt;If you want to give it a shot, I think there might be a way to do this without code, just via rules. The form name is stored in the xml:&lt;/p&gt;&lt;p&gt;&amp;lt;?mso-infoPathSolution solutionVersion=&amp;quot;1.0.0.2348&amp;quot; productVersion=&amp;quot;12.0.0&amp;quot; PIVersion=&amp;quot;1.0.0.0&amp;quot; href=&amp;quot;&amp;lt;XSN URL&amp;gt;&amp;quot; name=&amp;quot;&amp;lt;URN SCHEMA INFO&amp;gt;&amp;quot;?&amp;gt; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;So you could use substring-before and substring-after to grab the href and then get the xsn name from that. Good luck!&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Access name of currently opened file in InfoPath ?</title><link>https://www.infopathdev.com:443/forums/thread/50785.aspx</link><pubDate>Wed, 20 Jan 2010 15:46:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50785</guid><dc:creator>Alin Beschorner</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50785.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=50785</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;how do I programmatically access the name of the file that is currently opened in Infopath ?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Alin&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>