<?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 do I get the template's file name?</title><link>https://www.infopathdev.com:443/forums/thread/69392.aspx</link><pubDate>Thu, 18 Aug 2011 05:05:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:69392</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/69392.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=69392</wfw:commentRss><description>&lt;p&gt;I assume that by &amp;quot;template&amp;quot; you actually mean &amp;quot;document.&amp;quot; If you&amp;#39;re using the 2007 OM, you can get the URL of a document with &lt;strong&gt;this.Uri&lt;/strong&gt;.&lt;/p&gt;</description></item><item><title>How do I get the template's file name?</title><link>https://www.infopathdev.com:443/forums/thread/69376.aspx</link><pubDate>Wed, 17 Aug 2011 17:30:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:69376</guid><dc:creator>mikeyfev1</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/69376.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=69376</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I need to be able to add code to my form so that I export a PDF copy of the form with the same name as the original template.&amp;nbsp; For example, if I have a template file on a Sharepoint server in a form library with a URL of &lt;a href="http://myserver/People/JohnSmith.xml"&gt;&lt;strong&gt;http://myserver/People/JohnSmith.xml&lt;/strong&gt;&lt;/a&gt;, I need to be able to export to a file named &lt;strong&gt;JohnSmith.pdf.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I have not been able to find anyhting in the object model which will give me the name, URL, or any identifying information about the main data source.&amp;nbsp; Is there any way to determine the name or URL of the main form template?&amp;nbsp; TIA!&lt;/p&gt;</description></item></channel></rss>