<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: How to close the InfoPath in submit</title><link>https://www.infopathdev.com:443/forums/thread/22851.aspx</link><pubDate>Tue, 04 Sep 2007 07:57:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22851</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22851.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=22851</wfw:commentRss><description>&lt;p&gt;Hi Cathy,&lt;/p&gt;
&lt;p&gt;You are getting the error to get the XDocument.View object. Can you check once again have you imported InfoPath.dll? Can you uninstall your InfoPath and install it again.&lt;/p&gt;
&lt;p&gt;Hope this helps you.&lt;/p&gt;</description></item><item><title>Re: How to close the InfoPath in submit</title><link>https://www.infopathdev.com:443/forums/thread/22789.aspx</link><pubDate>Thu, 30 Aug 2007 12:53:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22789</guid><dc:creator>cathy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22789.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=22789</wfw:commentRss><description>&lt;p&gt;Hi Shiva,&lt;/p&gt;
&lt;p&gt;I tried it in try...catch....&amp;nbsp;it is giving the error at the compile time&amp;nbsp;itself. The error is &amp;quot;An object reference is required for the nonstatic field,method,or property &amp;#39;Microsfot.Office.Interop.InfoPath._XDocument2.View.get&amp;#39; &amp;quot;.....what does it mean?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How to close the InfoPath in submit</title><link>https://www.infopathdev.com:443/forums/thread/22781.aspx</link><pubDate>Thu, 30 Aug 2007 05:50:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22781</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22781.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=22781</wfw:commentRss><description>&lt;p&gt;Hi Cathy, &lt;/p&gt;
&lt;p&gt;I tried below the code in InfoPath 2007. &lt;/p&gt;
&lt;p&gt;Its worked for me and InfoPath form is closing when I click on button. &lt;/p&gt;
&lt;p&gt;XDocument.View.Window.Close(true); &lt;/p&gt;
&lt;p&gt;Can you add try and catch block to above statement and let you know what type of error it is giving? &lt;/p&gt;
&lt;p&gt;try &lt;/p&gt;
&lt;p&gt;{ &lt;/p&gt;
&lt;p&gt;XDocument.View.Window.Close(true); &lt;/p&gt;
&lt;p&gt;XDocument.UI.Alert(&amp;quot;The form has been successfully closed&amp;quot;); &lt;/p&gt;
&lt;p&gt;} &lt;/p&gt;
&lt;p&gt;catch(Exception ex) &lt;/p&gt;
&lt;p&gt;{ &lt;/p&gt;
&lt;p&gt;XDocument.UI.Alert(ex.Message); &lt;/p&gt;
&lt;p&gt;} &lt;/p&gt;
&lt;p&gt;Hope this helps you &lt;/p&gt;</description></item><item><title>Re: How to close the InfoPath in submit</title><link>https://www.infopathdev.com:443/forums/thread/22768.aspx</link><pubDate>Thu, 30 Aug 2007 00:08:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22768</guid><dc:creator>cathy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22768.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=22768</wfw:commentRss><description>&lt;p&gt;One more point is now I am working on InfoPath 2007.&lt;/p&gt;</description></item><item><title>Re: How to close the InfoPath in submit</title><link>https://www.infopathdev.com:443/forums/thread/22767.aspx</link><pubDate>Wed, 29 Aug 2007 23:50:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22767</guid><dc:creator>cathy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22767.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=22767</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Hi,&lt;/p&gt;
&lt;p&gt;I tried to write one of the following lines, but the intellisense is not popping up.&lt;/p&gt;
&lt;p&gt;Application.XDocuments.Close(XDocument)&lt;br /&gt;Application.XDocuments.Close(0)&lt;br /&gt;XDocument.View.Window.Close(true);&lt;br /&gt;thisApplication.ActiveWindow.Close(true);&lt;/p&gt;
&lt;p&gt;I have added the reference to &amp;quot;Microsoft.Office.Interop.InfoPath.dll&amp;quot; to my application,&amp;nbsp;even then it is not working.&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How to close the InfoPath in submit</title><link>https://www.infopathdev.com:443/forums/thread/22750.aspx</link><pubDate>Wed, 29 Aug 2007 16:44:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22750</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22750.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=22750</wfw:commentRss><description>&lt;p&gt;Looking at your other posts and what you are trying to do.&lt;/p&gt;
&lt;p&gt;I was going to share that we have made buttons that look and feel like check boxes but are actually buttons so you can have them trigger submit etc.&amp;nbsp; That may make your life easier with that simple trick.&amp;nbsp; Which is just making the button have an image, or use wingdings to replicate a check and a box.&amp;nbsp; If you search you can find more info but just thought I would throw that in for ya.&lt;/p&gt;</description></item><item><title>Re: How to close the InfoPath in submit</title><link>https://www.infopathdev.com:443/forums/thread/22748.aspx</link><pubDate>Wed, 29 Aug 2007 16:36:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22748</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22748.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=22748</wfw:commentRss><description>&lt;p&gt;Hey Cathy.&lt;/p&gt;
&lt;p&gt;Check out this post thread &lt;a href="http://www.infopathdev.com/forums/p/3337/12505.aspx#12505"&gt;http://www.infopathdev.com/forums/p/3337/12505.aspx#12505&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>How to close the InfoPath in submit</title><link>https://www.infopathdev.com:443/forums/thread/22746.aspx</link><pubDate>Wed, 29 Aug 2007 16:15:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22746</guid><dc:creator>cathy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22746.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=22746</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I want to&amp;nbsp;close the InfoPath when the submit operation is over. I don&amp;#39;t want to select it in &amp;quot;Submit Options&amp;quot;.&lt;/p&gt;
&lt;p&gt;I wrote some code under submitbutton_click&amp;nbsp;event. After performing this, my form must be closed. I tried Xmlform.Close() but it is not working.&amp;nbsp; How to close the infopath though code?&lt;/p&gt;
&lt;p&gt;Thanks&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>