<?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: Getting the path of an InfoPath 2003 Form (XSN)</title><link>https://www.infopathdev.com:443/forums/thread/30442.aspx</link><pubDate>Tue, 15 Jul 2008 10:12:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30442</guid><dc:creator>swathip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/30442.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=30442</wfw:commentRss><description>&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;Hi,&lt;/font&gt;&lt;/font&gt; 
&lt;p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;Use the following code in JScript&amp;nbsp;to get the path of an InfoPath xsn.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;var solutionURI =&amp;nbsp;&amp;nbsp; XDocument.Solution.URI&lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt; 
&lt;p&gt;
&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;&lt;/font&gt;&lt;/p&gt;Hope this hepls you.&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Re: Getting the path of an InfoPath 2003 Form (XSN)</title><link>https://www.infopathdev.com:443/forums/thread/30439.aspx</link><pubDate>Tue, 15 Jul 2008 08:51:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30439</guid><dc:creator>Magra</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/30439.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=30439</wfw:commentRss><description>&lt;p&gt;No, that doesn&amp;#39;t work. When using XDocument.URI I get back &amp;quot;Form1&amp;quot; instead of something like &amp;quot;C:\Program Files\CRM\Files\Test.xsn&amp;quot; :-(&lt;/p&gt;</description></item><item><title>Re: Getting the path of an InfoPath 2003 Form (XSN)</title><link>https://www.infopathdev.com:443/forums/thread/29529.aspx</link><pubDate>Thu, 19 Jun 2008 21:53:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29529</guid><dc:creator>deborahh</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29529.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=29529</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. &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>Getting the path of an InfoPath 2003 Form (XSN)</title><link>https://www.infopathdev.com:443/forums/thread/29403.aspx</link><pubDate>Mon, 16 Jun 2008 09:11:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29403</guid><dc:creator>Magra</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29403.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=29403</wfw:commentRss><description>&lt;p&gt;How can you get&amp;nbsp;the path an InfoPath 2003 Form (XSN) is saved under in VBScript/JScript?&amp;nbsp;Is there any Property like&amp;nbsp;ThisWorkbook.Path or DB.Name in MS Access/VBA.&lt;/p&gt;
&lt;p&gt;My setup is as follows: In a local folder I have one InfoPath Form (XSN file) and 4 PDF files. The form contains 4 buttons which must open one of the PDFs when clicked on. I wrote a code for this which works fine with the PDF filepaths hardcoded. But as soon as I move the form and the PDFs to another folder, this won&amp;#39;t work anymore.&lt;/p&gt;
&lt;p&gt;So I would prefer to build up the PDF filepaths in the code, based on the folder where my form lies. But I found no way how to get this folder in the code.&lt;/p&gt;
&lt;p&gt;All I was able to get is the network folder where the original of my form is stored and published. But as the form is mostly used offline this doesn&amp;#39;t really help me.&lt;/p&gt;</description></item></channel></rss>