<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Closing form by code opens &amp;quot;Fill out  a form&amp;quot; wind</title><link>https://www.infopathdev.com:443/forums/thread/9189.aspx</link><pubDate>Tue, 28 Feb 2006 18:02:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9189</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9189.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9189</wfw:commentRss><description>Hi Abhishek,&lt;br /&gt;&lt;br /&gt;//Close&lt;br /&gt;thisApplication.XDocuments.Close(thisXDocument);&lt;br /&gt;&lt;br /&gt;The above line in your code tries to close the present document, but does not close InfoPath window. If you want to close InfoPath window also use the following line of code&lt;br /&gt;&lt;br /&gt;	thisApplication.ActiveWindow.Close(true);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Hope this helps you&lt;br /&gt;</description></item><item><title>Re: Closing form by code opens &amp;quot;Fill out  a form&amp;quot; wind</title><link>https://www.infopathdev.com:443/forums/thread/9188.aspx</link><pubDate>Tue, 28 Feb 2006 14:41:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9188</guid><dc:creator>Abhishek</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9188.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9188</wfw:commentRss><description>Also I tried using the Quit method.&lt;br /&gt;Infopath SDK clearly states that if the input argument is set to false,the Infopath application will be quit without saving i.e without prompting,even if the data in the form has been changed.&lt;br /&gt;But if I write the following code.....&lt;br /&gt;thisApplication.Quit(false);&lt;br /&gt;it prompts with the "Do you want to Save the form?" dialog.&lt;br /&gt;&lt;br /&gt;Any good peice of code to close the form.&lt;br /&gt;Regards,&lt;br /&gt;Abhishek.</description></item><item><title>Closing form by code opens "Fill out  a form" wind</title><link>https://www.infopathdev.com:443/forums/thread/5403.aspx</link><pubDate>Tue, 28 Feb 2006 14:25:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5403</guid><dc:creator>Abhishek</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5403.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5403</wfw:commentRss><description>Dear friends,&lt;br /&gt;On the click of a button,I submit data to multiple tables in database using webservice.Then an alert is displayed.On clicking OK button,the form is submitted to the SharePoint library and finally it closes.&lt;br /&gt;&lt;br /&gt;&lt;font color="red"&gt;But the problem is that as soon as the form closes,the "Fill out a Form" window opens displaying the various form categories namely "Recently used forms,All forms,Favorites and so on.&lt;/font id="red"&gt;This window automatically opens.&lt;br /&gt;&lt;b&gt;But I need to suppress this window.&lt;/b&gt;&lt;br /&gt;the code I write is&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;					string PRTrackingNumber=thisXDocument.DOM.selectSingleNode("/my:PR_Form/my:PRTrackingNumber").nodeTypedValue.ToString();&lt;br /&gt;&lt;br /&gt;					thisXDocument.UI.Alert(PRTrackingNumber+" is the Procurement Request Tracking Number.You can use it to cancel your request.");&lt;br /&gt;				&lt;br /&gt;&lt;br /&gt;			//Finally Submit the Form to SharePoint Form Library			&lt;br /&gt;DAVAdapter oSharePoint = (DAVAdapter)thisXDocument.DataAdapters["Submit"]; &lt;br /&gt;			oSharePoint.Submit();&lt;br /&gt;			&lt;br /&gt;			&lt;br /&gt;			//Close&lt;br /&gt;			thisApplication.XDocuments.Close(thisXDocument);&lt;br /&gt;		&lt;br /&gt;Any help??&lt;br /&gt;Regards,&lt;br /&gt;Abhishek&lt;br /&gt;</description></item></channel></rss>