<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Copy text from ms word doc to Header/Footer of Content Type form based on library where content type is used</title><link>https://www.infopathdev.com:443/forums/thread/59257.aspx</link><pubDate>Fri, 24 Sep 2010 11:00:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59257</guid><dc:creator>colecg</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59257.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=59257</wfw:commentRss><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I have one content type&amp;nbsp;used under multiple libraries.&lt;/p&gt;
&lt;p&gt;I would like to be able from code behind of this content type &lt;/p&gt;
&lt;p&gt;1.&amp;nbsp;find the name of library&amp;nbsp;the content type form is&amp;nbsp;used in currently (opened in)&lt;/p&gt;
&lt;p&gt;2. based on previous fact, populate either expression box or header or footer or text box field of this content type with text from&amp;nbsp;word document table, or if easier I will create xml file for this table.&lt;/p&gt;
&lt;p&gt;lib1--&amp;gt;form1(based on content type1)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --&amp;gt;find the name of lib form1 is in, look into word doc, find row with data corresponding to lib1, populate either expression box or header or footer or text box field&lt;/p&gt;
&lt;p&gt;lib2--&amp;gt;&amp;nbsp;form2(based on content type1)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --&amp;gt;find the name of lib form2 is in, look into word doc, find row with data corresponding to lib2, populate either expression box or header or footer or text box field&lt;/p&gt;
&lt;p&gt;lib3--&amp;gt;form3(based on content type1)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --&amp;gt;find the name of lib form3 is in, look into word doc, find row with data corresponding to lib3, populate either expression box or header or footer or text box field&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Amira&lt;/p&gt;</description></item></channel></rss>