<?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>Browser Forms</title><link>https://www.infopathdev.com:443/forums/40.aspx</link><description>For browser form specific questions</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: How can I close form in managed code (C#)?</title><link>https://www.infopathdev.com:443/forums/thread/48339.aspx</link><pubDate>Thu, 29 Oct 2009 04:57:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48339</guid><dc:creator>Honey_hhv</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48339.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=48339</wfw:commentRss><description>&lt;p&gt;Hello dear&lt;/p&gt;
&lt;p&gt;No,I have a button in form and i handle click event for that (in code) to save in My sharepoint Document Library.(it works well)&lt;/p&gt;
&lt;p&gt;so after saving without error, i want to &lt;u&gt;&lt;strong&gt;close&lt;/strong&gt;&lt;/u&gt; form&amp;nbsp;(i cannot use a Close Rule for that , because it occurs before click event)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;or redirect it to Document Library (this part is the problem ), how can i solve it?&lt;/p&gt;
&lt;p&gt;&lt;em&gt;although i didn&amp;#39;t read your link yet, maybe it helps!! ;)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;i should add my form is browser enabled, too. and jscript it&amp;#39;s not work&lt;/p&gt;
&lt;p&gt;although i test thease code too, and&amp;nbsp;did not work when i publish form to sharepoint :&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;1- System.Diagnostics.&lt;/font&gt;&lt;font color="#008080" size="2"&gt;Process&lt;/font&gt;&lt;font size="2"&gt;.Start(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;iexplore.exe&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#800000" size="2"&gt;URL&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;2- System.Web.HttpRequest.Current.Response.Redirect(System.Web.HttpContext.Current.Request.UrlReferrer.OriginalString);&lt;/p&gt;</description></item><item><title>Re: How can I close form in managed code (C#)?</title><link>https://www.infopathdev.com:443/forums/thread/48338.aspx</link><pubDate>Thu, 29 Oct 2009 04:56:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48338</guid><dc:creator>Honey_hhv</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48338.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=48338</wfw:commentRss><description>&lt;p&gt;Hello dear&lt;/p&gt;
&lt;p&gt;I have a button in form and i handle click event for that (in code) to save in My sharepoint Document Library.(it works well)&lt;/p&gt;
&lt;p&gt;so after saving without error, i want to &lt;u&gt;&lt;strong&gt;close&lt;/strong&gt;&lt;/u&gt; form&amp;nbsp;(i cannot use a Close Rule for that , because it occurs before click event)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;or redirect it to Document Library (this part is the problem ), how can i solve it?&lt;/p&gt;
&lt;p&gt;&lt;em&gt;although i didn&amp;#39;t read your link yet, maybe it helps!! ;)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;i should add my form is browser enabled, too. and jscript it&amp;#39;s not work&lt;/p&gt;
&lt;p&gt;although i test thease code too, and&amp;nbsp;did not work when i publish form to sharepoint :&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;1- System.Diagnostics.&lt;/font&gt;&lt;font color="#008080" size="2"&gt;Process&lt;/font&gt;&lt;font size="2"&gt;.Start(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;iexplore.exe&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#800000" size="2"&gt;URL&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;2- System.Web.HttpRequest.Current.Response.Redirect(System.Web.HttpContext.Current.Request.UrlReferrer.OriginalString);&lt;/p&gt;</description></item><item><title>Re: How can I close form in managed code (C#)?</title><link>https://www.infopathdev.com:443/forums/thread/40501.aspx</link><pubDate>Thu, 09 Apr 2009 22:23:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40501</guid><dc:creator>Adnan Hashmi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40501.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=40501</wfw:commentRss><description>&lt;p&gt;An InfoPath project in Visual Studio typically has a reference to &lt;strong&gt;Microsoft.Office.InfoPath.dll&lt;/strong&gt; in the &lt;strong&gt;C:\Program Files\Microsoft Office\Office12\InfoPathOM\&lt;/strong&gt; folder. Remove that reference, and add a reference to the &lt;strong&gt;Microsoft.Office.InfoPath.dll&lt;/strong&gt; file in the &lt;strong&gt;C:\Program Files\Microsoft Office\Office12\&lt;/strong&gt; folder. You should be able to see the additional methods (including &lt;strong&gt;Quit()&lt;/strong&gt;) in the intelliSense dropdown after that.&lt;/p&gt;</description></item><item><title>Re: How can I close form in managed code (C#)?</title><link>https://www.infopathdev.com:443/forums/thread/36579.aspx</link><pubDate>Mon, 05 Jan 2009 14:33:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36579</guid><dc:creator>swathip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36579.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=36579</wfw:commentRss><description>Hi, 
&lt;p&gt;You can directly close the form using rules. Here is the link to close the forms using vb.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://techdhaan.wordpress.com/2008/06/03/close-infopath-forms-services-form-using-code/"&gt;http://techdhaan.wordpress.com/2008/06/03/close-infopath-forms-services-form-using-code/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hope it will solve your problem.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How can I close form in managed code (C#)?</title><link>https://www.infopathdev.com:443/forums/thread/36561.aspx</link><pubDate>Mon, 05 Jan 2009 10:37:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36561</guid><dc:creator>Anuma</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36561.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=36561</wfw:commentRss><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you verify this link to Execute Javascript in the Browser Enabled forms.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://support.microsoft.com/kb/555990"&gt;http://support.microsoft.com/kb/555990&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Verify below link to close the browser forms.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.sharepointblogs.com/lovedjohnysmith/archive/2007/10/22/close-new-opened-infopath-form-automatically.aspx"&gt;http://www.sharepointblogs.com/lovedjohnysmith/archive/2007/10/22/close-new-opened-infopath-form-automatically.aspx&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: How can I close form in managed code (C#)?</title><link>https://www.infopathdev.com:443/forums/thread/29475.aspx</link><pubDate>Wed, 18 Jun 2008 13:43:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29475</guid><dc:creator>iii1682000</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29475.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=29475</wfw:commentRss><description>&lt;p&gt;Thanks, your post is very informative.&lt;/p&gt;</description></item><item><title>Re: How can I close form in managed code (C#)?</title><link>https://www.infopathdev.com:443/forums/thread/29466.aspx</link><pubDate>Wed, 18 Jun 2008 07:21:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29466</guid><dc:creator>madyalman</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29466.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=29466</wfw:commentRss><description>&lt;p&gt;There is no Quit()&amp;nbsp;nor Close()&amp;nbsp;method of Application object in browser-enabled forms. (its not the same dll)&lt;/p&gt;
&lt;p&gt;I&amp;#39;m searching an easy way to close browsers&amp;nbsp;too. &lt;/p&gt;
&lt;p&gt;Forms Services doesnt permit to use javascript in browser. You can use custom asp.net page which hosts browser-enabled form in a XmlFormView control. So embeding javascript to custom page and triggering from form&amp;#39;s events, you are able to close the browser. But this solution is very indirect (and not suitable for my situation).&lt;/p&gt;</description></item><item><title>Re: How can I close form in managed code (C#)?</title><link>https://www.infopathdev.com:443/forums/thread/29440.aspx</link><pubDate>Tue, 17 Jun 2008 16:49:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29440</guid><dc:creator>iii1682000</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29440.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=29440</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;I am&amp;nbsp;seeing neither quit() nor close() from the this.application object, how come??????????????????????????????</description></item><item><title>Re: How can I close form in managed code (C#)?</title><link>https://www.infopathdev.com:443/forums/thread/28310.aspx</link><pubDate>Sat, 26 Apr 2008 15:31:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28310</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28310.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=28310</wfw:commentRss><description>&lt;p&gt;I think you want close rather than quit.&lt;/p&gt;</description></item><item><title>Re: How can I close form in managed code (C#)?</title><link>https://www.infopathdev.com:443/forums/thread/28307.aspx</link><pubDate>Fri, 25 Apr 2008 22:37:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28307</guid><dc:creator>ysm79</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28307.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=28307</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t see the&amp;nbsp;Quit&amp;nbsp;method in the this.Application function, I&amp;nbsp;have set the form to be fully trusted.&amp;nbsp;Does anybody know&amp;nbsp;why? &amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How can I close form in managed code (C#)?</title><link>https://www.infopathdev.com:443/forums/thread/23747.aspx</link><pubDate>Tue, 16 Oct 2007 18:06:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23747</guid><dc:creator>shaun.nieves</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23747.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=23747</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m sorry but my 7 year old probably knows c# better than I do so I can&amp;#39;t help you there. Here is how I submit in vb.net. ( I think your submit code is causing the error)&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;font size="2"&gt; Submit &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; DAVAdapter&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;Submit = thisXDocument.DataAdapters.Item(&amp;quot;Main Submit&amp;quot;)&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;If&lt;/font&gt;&lt;font size="2"&gt; thisFilename &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Is&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Nothing&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Then&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;thisFilename = Submit.FileName&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;End&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;If&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;Submit.FileName = thisFilename.TrimStart(&amp;quot;/&amp;quot;)&lt;/p&gt;
&lt;p&gt;Submit.Submit()&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;thisApplication.Quit(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;True&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;font size="2"&gt;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Re: How can I close form in managed code (C#)?</title><link>https://www.infopathdev.com:443/forums/thread/23736.aspx</link><pubDate>Tue, 16 Oct 2007 04:14:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23736</guid><dc:creator>jatuphum</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23736.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=23736</wfw:commentRss><description>&lt;p&gt;Hi, Shaun.&lt;/p&gt;
&lt;p&gt;When I try to use &amp;quot;this.Application.Quit(true);&amp;quot; (I&amp;#39;m using C#) and my form is fully trust too,&lt;/p&gt;
&lt;p&gt;The error is occured when I submit my web form.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div&gt;An entry has been added to the Windows event log of the server. &lt;/div&gt;
&lt;div&gt;&lt;span class="ErrorPageEmphasisText"&gt;Log ID:&lt;/span&gt;&lt;span&gt;5337&lt;/span&gt;&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is my code.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;font color="#008080" size="2"&gt;FileSubmitConnection&lt;/font&gt;&lt;font size="2"&gt; fc = (&lt;/font&gt;&lt;font color="#008080" size="2"&gt;FileSubmitConnection&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;font size="2"&gt;.DataConnections[&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;Main submit&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;];&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;fc.Execute();&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;font size="2"&gt;.Application.Quit(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;true&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;Then I see window event log, I cannot found error description. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;How can I solve this problem?&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;Cheers.&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: How can I close form in managed code (C#)?</title><link>https://www.infopathdev.com:443/forums/thread/23727.aspx</link><pubDate>Mon, 15 Oct 2007 20:19:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23727</guid><dc:creator>shaun.nieves</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23727.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=23727</wfw:commentRss><description>&lt;p&gt;The parameter is whatever you set it to be.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;dim URL as string = &lt;a href="http://infopathdev.com/"&gt;http://infopathdev.com&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;To set the form to be fully trusted, you&amp;#39;ll have to create a certificate to sign it with.&lt;/p&gt;
&lt;p&gt;Tools &amp;gt; Form options &amp;gt; Security &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How can I close form in managed code (C#)?</title><link>https://www.infopathdev.com:443/forums/thread/23704.aspx</link><pubDate>Mon, 15 Oct 2007 03:52:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23704</guid><dc:creator>jatuphum</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23704.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=23704</wfw:commentRss><description>&lt;p&gt;Hi Shaun,&lt;/p&gt;
&lt;p&gt;I want to ask you about &amp;quot;System.Diagnostics.Process.Start(URL)&amp;quot;.&lt;/p&gt;
&lt;p&gt;What is &amp;quot;URL&amp;quot; parameter?&lt;/p&gt;
&lt;p&gt;Cheers.&lt;/p&gt;</description></item><item><title>Re: How can I close form in managed code (C#)?</title><link>https://www.infopathdev.com:443/forums/thread/23701.aspx</link><pubDate>Sun, 14 Oct 2007 20:40:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23701</guid><dc:creator>jatuphum</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23701.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=23701</wfw:commentRss><description>&lt;p&gt;Hi shaun,&lt;/p&gt;
&lt;p&gt;How can I set &amp;quot;fully trusted&amp;quot;?&lt;/p&gt;
&lt;p&gt;Cheers.&lt;/p&gt;</description></item></channel></rss>