<?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: Open New Form On Submission</title><link>https://www.infopathdev.com:443/forums/thread/51857.aspx</link><pubDate>Wed, 17 Feb 2010 16:27:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51857</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51857.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=51857</wfw:commentRss><description>&lt;p&gt;Sure. For 2003, per &lt;a href="http://msdn.microsoft.com/en-us/library/aa944034.aspx"&gt;MSDN&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;XDocument newDocument;&lt;br /&gt;newDocument = thisApplication.XDocuments. NewFromSolution (@&amp;quot;C:\MyForm.xsn&amp;quot;);&lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>Re: Open New Form On Submission</title><link>https://www.infopathdev.com:443/forums/thread/51755.aspx</link><pubDate>Mon, 15 Feb 2010 09:41:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51755</guid><dc:creator>Irianna</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51755.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=51755</wfw:commentRss><description>Do you happen to have this for InfoPath 2003 C# ?&lt;br /&gt;&lt;br /&gt;Cheers&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;Hilary Stoupa:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;Are you using InfoPath 2003 or 2007?&lt;/p&gt;
&lt;p&gt;For 2007, it is like:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;XmlForm newDocument =&amp;nbsp; this.Application.XmlForms.NewFromFormTemplate(@&amp;quot;C:\MyForm.xsn&amp;quot;);&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;code snippet copied from MSDN documentation located &lt;a href="http://msdn.microsoft.com/en-us/library/aa943732(VS.80).aspx"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;</description></item><item><title>Re: Open New Form On Submission</title><link>https://www.infopathdev.com:443/forums/thread/40912.aspx</link><pubDate>Thu, 23 Apr 2009 15:25:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40912</guid><dc:creator>SD Developer</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40912.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=40912</wfw:commentRss><description>&lt;p&gt;Thank you so much for the help. I searched for a couple hours and couldn&amp;#39;t find anything. THANKS AGAIN.&lt;/p&gt;</description></item><item><title>Re: Open New Form On Submission</title><link>https://www.infopathdev.com:443/forums/thread/40911.aspx</link><pubDate>Thu, 23 Apr 2009 15:18:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40911</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40911.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=40911</wfw:commentRss><description>&lt;p&gt;Are you using InfoPath 2003 or 2007?&lt;/p&gt;
&lt;p&gt;For 2007, it is like:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;XmlForm newDocument =&amp;nbsp; this.Application.XmlForms.NewFromFormTemplate(@&amp;quot;C:\MyForm.xsn&amp;quot;);&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;code snippet copied from MSDN documentation located &lt;a href="http://msdn.microsoft.com/en-us/library/aa943732(VS.80).aspx"&gt;here&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Re: Open New Form On Submission</title><link>https://www.infopathdev.com:443/forums/thread/40908.aspx</link><pubDate>Thu, 23 Apr 2009 14:26:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40908</guid><dc:creator>SD Developer</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40908.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=40908</wfw:commentRss><description>Do I need to add a reference to something in order to get XDocuments.NewFromSolution(URI) to pull up? Currently I don&amp;#39;t have those options in my code behind which is in C#.</description></item><item><title>Re: Open New Form On Submission</title><link>https://www.infopathdev.com:443/forums/thread/40888.aspx</link><pubDate>Thu, 23 Apr 2009 04:34:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40888</guid><dc:creator>swathip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40888.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=40888</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can do this using rules. Add a rule to open a new form to fill out the form and give the url of the form which you want to open. Add second rule to submit the form.&lt;/p&gt;
&lt;p&gt;First write the code to submit the form then ad the following line to open the new solution.&lt;/p&gt;
&lt;p&gt;thisApplication.XDocuments.NewFromSolution(URI);&lt;/p&gt;
&lt;p&gt;Here URI is the url of the form whch you want to open.&lt;/p&gt;</description></item><item><title>Open New Form On Submission</title><link>https://www.infopathdev.com:443/forums/thread/40853.aspx</link><pubDate>Wed, 22 Apr 2009 14:21:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40853</guid><dc:creator>SD Developer</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40853.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=40853</wfw:commentRss><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;&amp;nbsp; I am looking to have a button on a form that will allow the user to either close the form, or close the form and open a new form to submit another item. Just wondering if anyone has done this from the code. I have it published to a SharePoint forms library. I just don&amp;#39;t want them to have to navigate back out to the site to get a new form. I want them to be able to open a new one from the form they are submitting. Any help is greatly appreciated. thanks in advance.&lt;/p&gt;</description></item></channel></rss>