<?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: Exporting InfoPath form as PDF to a network file share</title><link>https://www.infopathdev.com:443/forums/thread/105373.aspx</link><pubDate>Tue, 02 Feb 2016 20:54:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:105373</guid><dc:creator>jambou9182</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/105373.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=105373</wfw:commentRss><description>&lt;p&gt;It works!&amp;nbsp;&amp;nbsp; Thank you so much!&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Exporting InfoPath form as PDF to a network file share</title><link>https://www.infopathdev.com:443/forums/thread/105371.aspx</link><pubDate>Tue, 02 Feb 2016 20:45:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:105371</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/105371.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=105371</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;You don&amp;#39;t need the &amp;quot;@&amp;quot; anymore. See this Stack Overflow thread for an explanation: &lt;a href="http://stackoverflow.com/questions/556133/whats-the-in-front-of-a-string-in-c"&gt;http://stackoverflow.com/questions/556133/whats-the-in-front-of-a-string-in-c&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Exporting InfoPath form as PDF to a network file share</title><link>https://www.infopathdev.com:443/forums/thread/105370.aspx</link><pubDate>Tue, 02 Feb 2016 20:27:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:105370</guid><dc:creator>jambou9182</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/105370.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=105370</wfw:commentRss><description>&lt;p&gt;I have coded a button in my form that exports the current view in PDF format to a file share.&amp;nbsp; The filename is auto generated based on a field in my form called &amp;quot;Filename&amp;quot;.&amp;nbsp; I want to also auto generate the file share location, instead of hard coding it.&lt;/p&gt;&lt;p&gt;Here is my C# code that has the network share hard coded in: &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;i&gt;&lt;b&gt;string Filename = 
this.MainDataSource.CreateNavigator().SelectSingleNode(&amp;quot;/my:BaseTemplateFields/my:Filename&amp;quot;,
 this.NamespaceManager).Value;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.CurrentView.Export(@&amp;quot;&lt;a&gt;\\Sharename\Folder\&lt;/a&gt;&amp;quot; + Filename + &amp;quot;.pdf&amp;quot;, Microsoft.Office.InfoPath.ExportFormat.Pdf);&lt;/b&gt;&lt;/i&gt; &lt;/p&gt;&lt;p&gt;I want to replace &amp;quot;&lt;a&gt;\\Sharename\Folder\&lt;/a&gt;&amp;quot; with a field from my form called &amp;quot;Location&amp;quot;, so i tried this:&lt;/p&gt;&lt;p&gt;&lt;i&gt;&lt;b&gt;&amp;nbsp;string Filename = this.MainDataSource.CreateNavigator().SelectSingleNode(&amp;quot;/my:BaseTemplateFields/my:Filenameform&amp;quot;, this.NamespaceManager).Value;&lt;br /&gt;&amp;nbsp;string Location = this.MainDataSource.CreateNavigator().SelectSingleNode(&amp;quot;/my:BaseTemplateFields/my:Location&amp;quot;, this.NamespaceManager).Value;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.CurrentView.Export(@ Location + Filename + &amp;quot;.pdf&amp;quot;, Microsoft.Office.InfoPath.ExportFormat.Pdf);&lt;/b&gt;&lt;/i&gt;&lt;/p&gt;&lt;p&gt;But it doesn&amp;#39;t work. I&amp;#39;m missing something after the @ I think, but I&amp;#39;m not sure what.&lt;/p&gt;&lt;p&gt;Any help would be appreciated.&lt;/p&gt;&lt;p&gt;Thank you. &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>