<?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: is it possible to develop multiple Infopath forms in one Visual Studio solution?</title><link>https://www.infopathdev.com:443/forums/thread/62385.aspx</link><pubDate>Fri, 17 Dec 2010 02:26:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:62385</guid><dc:creator>BigToe</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/62385.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=62385</wfw:commentRss><description>&lt;p&gt;Just to close this off and hope that it will help others, I&amp;#39;ve created a project for each of my forms and I doubt there is a way to have only one project with many forms.&amp;nbsp; My shared code sits in a different project and is referenced in all the forms.&amp;nbsp; After successfully deploying, I thought I&amp;#39;d share some tips from my experience:&lt;/p&gt;
&lt;p&gt;- Infopath is designed for simple forms.&amp;nbsp; For complex forms that create lots of customised user experience, ASP.Net is the way to go.&amp;nbsp; Infopath is quite painful, Microsoft hasn&amp;#39;t developed Visual Studio much to support Infopath Dev, presumably Infopath is not a money spinner for them.&amp;nbsp; So keep simple and be organised.&lt;/p&gt;
&lt;p&gt;- Deployment is not even simple.&amp;nbsp; There are 2 parts: Publish and Deploy.&amp;nbsp;&amp;nbsp;Publish your form manually (I haven&amp;#39;t found an automation tool).&amp;nbsp; Then to deploy, use this tool (credits to some kind guy or gal): &lt;a href="http://infopathformsinstall.codeplex.com/releases/view/16178"&gt;http://infopathformsinstall.codeplex.com/releases/view/16178&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;- to share code, put in a separate project, update the version of your shared project&amp;nbsp;by one number up (I&amp;#39;ve found that the moment you press build, your SharedCode.dll is considered different than the previous build&amp;#39;s one and will cause deployment errors if the version number is unchanged.&amp;nbsp; (Right click the SharedCode project &amp;gt; Properties, select Assembly Information, change the first number)&lt;/p&gt;
&lt;p&gt;Thanks to many people&amp;#39;s contributions, in particular Potemkine.&lt;/p&gt;
&lt;p&gt;I live in Australia.&amp;nbsp; Come visit!&amp;nbsp; Oprah has just left...&amp;nbsp; Oprah likes infopath too, just kidding!&lt;/p&gt;</description></item><item><title>Re: is it possible to develop multiple Infopath forms in one Visual Studio solution?</title><link>https://www.infopathdev.com:443/forums/thread/60465.aspx</link><pubDate>Tue, 19 Oct 2010 05:32:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60465</guid><dc:creator>BigToe</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60465.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=60465</wfw:commentRss><description>&lt;p&gt;Thanks kindly, Jimmy and Potemkine for your ideas.&amp;nbsp; Jimmy, unfortunately, i don&amp;#39;t have resources to buy qRules.&lt;/p&gt;
&lt;p&gt;Potemkine,&amp;nbsp;i have created the new project as per the last reply but unless you mean differently (I&amp;#39;m a newbie at Infopath forms and may be missing something most Infopath experts take for granted), it looks to me that I&amp;#39;d end up with 100 projects for 100 forms.&amp;nbsp; So with 2 projects, I have:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Solution &amp;#39;InfopathCode&amp;#39;&lt;br /&gt;&lt;/strong&gt;-&amp;nbsp;&lt;strong&gt;MyFormProject1&lt;br /&gt;&lt;/strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;+ Properties&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;+ References&lt;br /&gt;&amp;nbsp;&amp;nbsp; - InfoPath Form Code&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - FormCode.cs&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;+ InfoPath FormTemplate&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;InfoPath.snk&lt;br /&gt;- &lt;strong&gt;MyFormProject2&lt;br /&gt;&lt;/strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;+ Properties&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;+ References&lt;br /&gt;&amp;nbsp;&amp;nbsp; - InfoPath Form Code&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - FormCode.cs&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;+ InfoPath FormTemplate&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;InfoPath.snk&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I&amp;#39;m trying to achieve this:&lt;br /&gt;&lt;strong&gt;Solution InfopathCodeOneBigHappyFamily&lt;br /&gt;&lt;/strong&gt;- &lt;strong&gt;MyFormsFamily&lt;br /&gt;&lt;/strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;+ Properties&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;+ References&lt;br /&gt;&amp;nbsp;&amp;nbsp; - InfoPath Form Code&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - FormCodeMama.cs&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;----I&amp;#39;m hoping there&amp;#39;s an easier way to put Mama, Papa, Sis, Bro, Junior all in&amp;nbsp;one project.&amp;nbsp; If anyone knows how to easily,&amp;nbsp;it&amp;#39;s most appreciated.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - FormCodePapa.cs&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;--- I&amp;#39;ve&amp;nbsp;searched&amp;nbsp;the internet but haven&amp;#39;t found the answer yet... maybe I&amp;#39;m going about this the wrong way?&amp;nbsp; I want the&amp;nbsp;thing to be as manageable as ASP.Net code&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - FormCodeSis.cs&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;--- for now, I&amp;#39;ll stick to&amp;nbsp;the first solution but hope this will help others find&amp;nbsp;answers&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - FormCodeBro.cs&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- FormCodeJunior.cs&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;+ InfoPath FormTemplate&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;InfoPath.snk&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: is it possible to develop multiple Infopath forms in one Visual Studio solution?</title><link>https://www.infopathdev.com:443/forums/thread/60391.aspx</link><pubDate>Fri, 15 Oct 2010 14:05:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60391</guid><dc:creator>Potemkine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60391.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=60391</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;BigToe:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;When I try to copy the manifest.xsf file, say, I call it manifest2.xsf.&amp;nbsp; Whenever I click on either one of them, the other one disappears.&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;span style="COLOR:#000;"&gt;I do not recommend you to&amp;nbsp;do that, I suggest you to create a new project, right click on your solution on solution explorer, then new project, and create a new clean form. After than you can copy some code in the namespace&amp;nbsp;or content on the manifest from one to another. To apply Css to different view, you can do the trick Jimmy said.&lt;/span&gt;</description></item><item><title>Re: is it possible to develop multiple Infopath forms in one Visual Studio solution?</title><link>https://www.infopathdev.com:443/forums/thread/60389.aspx</link><pubDate>Fri, 15 Oct 2010 12:55:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60389</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60389.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=60389</wfw:commentRss><description>&lt;p&gt;Hello BigToe,&lt;/p&gt;
&lt;p&gt;An InfoPath form is a lot more than just a manifest.xsf file, and you can&amp;#39;t duplicate&amp;nbsp;one just by copying the manifest.xsf file.&lt;/p&gt;
&lt;p&gt;100 different forms, each with its own custom code sounds like lunacy to me.&amp;nbsp; Have you checked out qRules yet?&amp;nbsp; qRules provides most of the functionality&amp;nbsp;people generally want to accomplish with code, all in a tidy package.&amp;nbsp; No need to manage a whole bunch of code.&amp;nbsp; It includes a feature that can be used to inspect a form&amp;#39;s input parameters and switch the form&amp;#39;s view accordingly.&amp;nbsp; Perhaps you could use this to consolidate forms with similar data needs into single XSNs and have, say, 10 forms instead of 100?&lt;/p&gt;&amp;nbsp;InfoPath forms do not typically have CSS files, but you can add a CSS file as a resource file and then reference this in each view&amp;#39;s XSL with a &amp;lt;link&amp;gt; tag in the &amp;lt;head&amp;gt; section:&amp;nbsp;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt; 
&lt;blockquote&gt;
&lt;p&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;link&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt; &lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;rel&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;stylesheet&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt; &lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;type&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;text/css&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt; &lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;href&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;style.css&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;link&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/blockquote&gt;
&lt;p&gt;From the bit of experimentation I&amp;#39;ve done, this does seem to work, and not get eliminated when InfoPath roundtrips the XSL.&lt;/p&gt;</description></item><item><title>Re: is it possible to develop multiple Infopath forms in one Visual Studio solution?</title><link>https://www.infopathdev.com:443/forums/thread/60358.aspx</link><pubDate>Fri, 15 Oct 2010 03:31:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60358</guid><dc:creator>BigToe</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60358.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=60358</wfw:commentRss><description>&lt;p&gt;Thanks Potemkine for your quick reply.&lt;/p&gt;
&lt;p&gt;Ref: Infopath , Visual Studio 2008, Sharepoint 2007&lt;/p&gt;
&lt;p&gt;When I try to copy the manifest.xsf file, say, I call it manifest2.xsf.&amp;nbsp; Whenever I click on either one of them, the other one disappears.&lt;/p&gt;
&lt;p&gt;Also, how&amp;nbsp;do you copy the FormCode.cs file (+ its xml and Designer.cs files) in Visual Studio 2008.&amp;nbsp; This option is greyed out.&lt;/p&gt;
&lt;p&gt;Other information: I will be deploying these infopath forms into Sharepoint 2007 when done.&amp;nbsp; And hoping to apply 1 css file to all forms -- would you know which one is the css file?&lt;/p&gt;</description></item><item><title>Re: is it possible to develop multiple Infopath forms in one Visual Studio solution?</title><link>https://www.infopathdev.com:443/forums/thread/60356.aspx</link><pubDate>Fri, 15 Oct 2010 02:44:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60356</guid><dc:creator>Potemkine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60356.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=60356</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi, yes on a same project you can create many form, you can copy / paste the content, code from one form to another, but keep in mind that each form must have a unique namespace( if you want to drag and drop the manifest and other files, you can have some trouble). &lt;br /&gt;&lt;/p&gt;</description></item><item><title>is it possible to develop multiple Infopath forms in one Visual Studio solution?</title><link>https://www.infopathdev.com:443/forums/thread/60354.aspx</link><pubDate>Fri, 15 Oct 2010 02:13:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60354</guid><dc:creator>BigToe</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60354.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=60354</wfw:commentRss><description>&lt;p&gt;I have an Infopath 2007&amp;nbsp;template project in my Visual Studio 2008 solution.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I have about 100 forms to do and was hoping I dont have to create a separate project for each form.&amp;nbsp; Is it possible -- like with aspx pages, you just add a new page to your Web project -- to just add a manifest.xsf file and its associated code behind file?&lt;/p&gt;</description></item></channel></rss>