<?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 close both the form and Infopath application with code?</title><link>https://www.infopathdev.com:443/forums/thread/46712.aspx</link><pubDate>Tue, 08 Sep 2009 08:32:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46712</guid><dc:creator>princevis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46712.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=46712</wfw:commentRss><description>&lt;p&gt;Instead of that create a data connection to submit data,to a sharepoint library,through some unique name,u can get now() function from the inbuilt formulas,then on button click do this&lt;/p&gt;
&lt;p&gt;SPSecurity.RunWithElevatedPrivileges(delegate()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.Submit();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/p&gt;
&lt;p&gt;Let me know,if u get it working..&lt;/p&gt;</description></item><item><title>Re: How to close both the form and Infopath application with code?</title><link>https://www.infopathdev.com:443/forums/thread/46711.aspx</link><pubDate>Tue, 08 Sep 2009 07:57:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46711</guid><dc:creator>Razor</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46711.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=46711</wfw:commentRss><description>&lt;p&gt;Exactly. My save function validates the form data, fetches an Id from a database using a stored procedure and then submits the form to a Sharepoint form library. The form closes alright but Infopath and that Getting started dialog opens up instead.&lt;/p&gt;</description></item><item><title>Re: How to close both the form and Infopath application with code?</title><link>https://www.infopathdev.com:443/forums/thread/46688.aspx</link><pubDate>Mon, 07 Sep 2009 09:04:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46688</guid><dc:creator>princevis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46688.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=46688</wfw:commentRss><description>If i&amp;#39;m not wrong,ur Save the form means submitting it to Form library.Right?</description></item><item><title>Re: How to close both the form and Infopath application with code?</title><link>https://www.infopathdev.com:443/forums/thread/46687.aspx</link><pubDate>Mon, 07 Sep 2009 08:58:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46687</guid><dc:creator>Razor</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46687.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=46687</wfw:commentRss><description>&lt;p&gt;Well, there might be one somewhere but I can&amp;#39;t find it though.&lt;/p&gt;</description></item><item><title>Re: How to close both the form and Infopath application with code?</title><link>https://www.infopathdev.com:443/forums/thread/46546.aspx</link><pubDate>Thu, 03 Sep 2009 07:20:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46546</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46546.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=46546</wfw:commentRss><description>&lt;p&gt;Isn&amp;#39;t there an Exit method?&lt;/p&gt;</description></item><item><title>How to close both the form and Infopath application with code?</title><link>https://www.infopathdev.com:443/forums/thread/46458.aspx</link><pubDate>Tue, 01 Sep 2009 07:22:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46458</guid><dc:creator>Razor</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46458.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=46458</wfw:commentRss><description>&lt;p&gt;I.m using Infopath 2007 with the 2007 object model and managed C# code. I am saving the form using custom code and like to close the form and Infopath&amp;nbsp;after save. The form close alright but the Infopath application is still running with the &amp;quot;Getting started&amp;quot; dialog on top.&amp;nbsp;Could someone enlighten me on how to achieve this? &lt;/p&gt;
&lt;p&gt;The code I&amp;#39;m using:&lt;br /&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Close();&lt;br /&gt;I&amp;#39;ve also tried without different result:&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Application.ActiveWindow.Close();&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;Regards Razor&lt;/p&gt;</description></item></channel></rss>