<?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 to share code among Infopath forms?</title><link>https://www.infopathdev.com:443/forums/thread/64146.aspx</link><pubDate>Fri, 11 Feb 2011 16:54:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:64146</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/64146.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=64146</wfw:commentRss><description>&lt;p&gt;You are right -- you can just add the compiled dll. I guess I just usually find I always have one more thing I need to add to my common code, so it is easier to add the project as reference and then I can easily update it. You may be more organized than I am.... :- }&lt;/p&gt;</description></item><item><title>Re: How to share code among Infopath forms?</title><link>https://www.infopathdev.com:443/forums/thread/64128.aspx</link><pubDate>Fri, 11 Feb 2011 10:26:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:64128</guid><dc:creator>renato</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/64128.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=64128</wfw:commentRss><description>&lt;p&gt;Yap, same thing happening to me, I do have the &amp;quot;New Project&amp;quot; menu item, but no templates installed. I also tried following the route indicated in the system application event log to run vsta /installvstemplates, but that was unsuccessful as well. I&amp;#39;m going to use VS express, that should be enough. So thanks a lot for your suggestion; just an additional question: why shouldn&amp;#39;t I reference the compiled dll? Wouldn&amp;#39;t that just bring that dll within the xsn cab of the form?&lt;/p&gt;</description></item><item><title>Re: How to share code among Infopath forms?</title><link>https://www.infopathdev.com:443/forums/thread/64100.aspx</link><pubDate>Thu, 10 Feb 2011 16:45:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:64100</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/64100.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=64100</wfw:commentRss><description>&lt;p&gt;I think you could create the new project with your common code, and then add a reference to the project (not the compiled dll). When I open VSTA directly (not from InfoPath), I do see the option for New Project on the menu, but if I click it, I get a message about no templates installed. &lt;/p&gt;
&lt;p&gt;However, there are free editions of Visual Studio available (Visual Studio Express editions) -- you could always check those out.&lt;/p&gt;</description></item><item><title>How to share code among Infopath forms?</title><link>https://www.infopathdev.com:443/forums/thread/64093.aspx</link><pubDate>Thu, 10 Feb 2011 15:41:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:64093</guid><dc:creator>renato</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/64093.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=64093</wfw:commentRss><description>&lt;p&gt;I have 6 form templates deployed on a Sharepoint form library as site content types (though I guess this information is irrelevant to my question...) All the 6 templates have a big part of code behing which could be re-used, while at the moment I have it duplicated in all of them. Ideally I would build a new project for a dll where to place the code to be reused, then add references to that dll from within the form&amp;#39;s code, but I&amp;#39;m not really sure how to proceed. I&amp;#39;m using IP 2010 in 2003 compatible mode, and VSTA for coding. I don&amp;#39;t seem to be able to build a library with VSTA, there isn&amp;#39;t a &amp;quot;New Project&amp;quot; menu option. I would also be unsure about what should I do with the generated dll; should I install it in the GAC? Just leave it in the project folder and reference it from there? I maybe need Visual Studio?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Any help is really appreciated,&lt;/p&gt;
&lt;p&gt;Renato&lt;/p&gt;</description></item></channel></rss>