<?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>Form Library Location for Forms published as a content type</title><link>https://www.infopathdev.com:443/forums/thread/43763.aspx</link><pubDate>Thu, 02 Jul 2009 21:11:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43763</guid><dc:creator>PhDUltra</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43763.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=43763</wfw:commentRss><description>&lt;p&gt;When publishing a form that will be used in multiple sites, I have been able to create custom code for the Submit option which extracts the Uri location from the Me.Template.Uri.&lt;/p&gt;
&lt;p&gt;I have now created a set of forms which have been published as content types to a root site location. The form library created in the child sites use these content types to allow users to create multiple forms in the one library. However the me.Template.Uri value points to the location to where the content type is published not the form library where the New button was selected to create the selected form. &lt;/p&gt;
&lt;p&gt;Please bear in mind when responded that I am using InfoPath 2007 and i DO NOT have backward compatibility turned on.&lt;/p&gt;
&lt;p&gt;The following post also asked this same question back in April which went unanswered.&lt;/p&gt;
&lt;p&gt;&lt;a title="InfoPath 2007 SharePoint Content Type" href="http://www.infopathdev.com/forums/p/11466/43761.aspx#43761" target="_blank"&gt;InfoPath 2007 SharePoint Content Type&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;If determining the location of the Form Library from which the form is created cannot be determined, please answer with that bad news. Leaving post like this unanswered can be very frustrating for us.&lt;/p&gt;
&lt;p&gt;Thanks for the great support.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>