<?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: Get current folder location</title><link>https://www.infopathdev.com:443/forums/thread/120773.aspx</link><pubDate>Fri, 05 Apr 2019 08:07:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:120773</guid><dc:creator>joubin</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/120773.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=120773</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I think I found a solution now:&lt;/p&gt;&lt;p&gt;this.Template.Uri;&lt;/p&gt;&lt;p&gt;this.Uri;&lt;/p&gt;&lt;p&gt;but to assign a string you need to use Path.GetFolderName() function.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Get current folder location</title><link>https://www.infopathdev.com:443/forums/thread/120747.aspx</link><pubDate>Wed, 03 Apr 2019 08:37:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:120747</guid><dc:creator>joubin</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/120747.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=120747</wfw:commentRss><description>&lt;p&gt;I tried something new, so the user can set a field with desired location.&lt;/p&gt;&lt;p&gt;&amp;nbsp;folderNode &lt;span class="pun"&gt;=&lt;/span&gt;&lt;span class="pln"&gt; &lt;/span&gt;&lt;span class="typ"&gt;MainDataSource&lt;/span&gt;&lt;span class="pun"&gt;.&lt;/span&gt;&lt;span class="typ"&gt;CreateNavigator&lt;/span&gt;&lt;span class="pun"&gt;().&lt;/span&gt;&lt;span class="typ"&gt;SelectSingleNode&lt;/span&gt;&lt;span class="pun"&gt;(&lt;/span&gt;&lt;span class="str"&gt;&amp;quot;/my:myFields/my:FolderLocation&amp;quot;&lt;span class="pun"&gt;,&lt;/span&gt;&lt;span class="pln"&gt; &lt;/span&gt;&lt;span class="typ"&gt;NamespaceManager&lt;/span&gt;&lt;span class="pun"&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;But is there a way to populate it automatically? Based on which drive/folder the form was launched from.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Get current folder location</title><link>https://www.infopathdev.com:443/forums/thread/120180.aspx</link><pubDate>Thu, 13 Dec 2018 15:37:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:120180</guid><dc:creator>joubin</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/120180.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=120180</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi,&lt;/p&gt;&lt;p&gt;I want to export a current view to PDF, and save it to the location where the user currently opens the form from:&lt;/p&gt;&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.CurrentView.Export(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;@&amp;quot;\&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; + fileName, &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;ExportFormat&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Pdf);&lt;/font&gt;&lt;/p&gt;&lt;p&gt;unfortunately it does not work, any ideas?&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>