<?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: Programmatically execute without popup window</title><link>https://www.infopathdev.com:443/forums/thread/76725.aspx</link><pubDate>Wed, 21 Mar 2012 23:57:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:76725</guid><dc:creator>Jo-Anne Alfafara</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/76725.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=76725</wfw:commentRss><description>&lt;p&gt;It seems that the email data connection is set as a default submit. Instead of using the default submit in InfoPath, try adding a button and add your custom code to that button. =)&lt;/p&gt;</description></item><item><title>Re: Programmatically execute without popup window</title><link>https://www.infopathdev.com:443/forums/thread/76692.aspx</link><pubDate>Wed, 21 Mar 2012 13:07:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:76692</guid><dc:creator>mikelchris</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/76692.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=76692</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Yes, with this Submit Options i still get the popup window! :-(&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Programmatically execute without popup window</title><link>https://www.infopathdev.com:443/forums/thread/76691.aspx</link><pubDate>Wed, 21 Mar 2012 13:01:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:76691</guid><dc:creator>Jo-Anne Alfafara</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/76691.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=76691</wfw:commentRss><description>&lt;p&gt;Hi mikelchris,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m on InfoPath 2010, so I&amp;#39;m not sure if that option is available&amp;nbsp;in your data connection wizard. &lt;/p&gt;
&lt;p&gt;So you have this configured in your Submit Options and yet you still get the popup window? &lt;/p&gt;</description></item><item><title>Re: Programmatically execute without popup window</title><link>https://www.infopathdev.com:443/forums/thread/76682.aspx</link><pubDate>Wed, 21 Mar 2012 12:22:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:76682</guid><dc:creator>mikelchris</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/76682.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=76682</wfw:commentRss><description>&lt;p&gt;Hi Jo-Anne :-)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I worked with InfoPath 2007 and i dont know how to check if the data connection is not set as default. &lt;/p&gt;&lt;p&gt;Under &amp;quot;Perform custum action using Code&amp;quot; if have the following and after i pressed the button i get the popup window.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Public Sub FormEvents_Submit(ByVal sender As Object, ByVal e As SubmitEventArgs)&lt;br /&gt;&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; Dim mySubmit As EmailSubmitConnection = DirectCast(Me.DataConnections(&amp;quot;testversand&amp;quot;), EmailSubmitConnection)&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; mySubmit.Execute()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;End Sub &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;My Submit.Options &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;img src="http://mikelchris.mi.funpic.de/Absendeoptionen.jpg" title="submit options" alt="submit options" height="354" width="520" /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;My Connection&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;img src="http://mikelchris.mi.funpic.de/datenverbindung.jpg" title="submit connection" alt="submit connection" /&gt;&lt;/p&gt;</description></item><item><title>Re: Programmatically execute without popup window</title><link>https://www.infopathdev.com:443/forums/thread/76677.aspx</link><pubDate>Wed, 21 Mar 2012 11:18:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:76677</guid><dc:creator>Jo-Anne Alfafara</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/76677.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=76677</wfw:commentRss><description>&lt;p&gt;Hi mikelchris,&lt;/p&gt;
&lt;p&gt;You&amp;#39;d want to make sure that the email data connection is not checked as default submit connection. Also, in the Submit Options dialog, check &amp;quot;Allow users to submit this form&amp;quot; but select the option &amp;quot;Perform custom action using Code&amp;quot;, then edit code.&lt;/p&gt;
&lt;p&gt;Can you try that?&lt;/p&gt;</description></item><item><title>Programmatically execute without popup window</title><link>https://www.infopathdev.com:443/forums/thread/76673.aspx</link><pubDate>Wed, 21 Mar 2012 07:01:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:76673</guid><dc:creator>mikelchris</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/76673.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=76673</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi,&lt;/p&gt;&lt;p&gt;&amp;nbsp;how can i execute a infopath form without the popup window where i have to press the send button. I want to automatically execute the form with different content and different email-adresses.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;This is my vb.net-code &lt;/p&gt;&lt;p&gt;Dim mySubmit As EmailSubmitConnection = DirectCast(Me.DataConnections(&amp;quot;testversand&amp;quot;), EmailSubmitConnection)&lt;br /&gt;mySubmit.Execute()&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;This ist the popup-window that i want to disable &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;img src="http://mikelchris.mi.funpic.de/popup.bmp" title="popup" alt="popup" height="398" width="436" /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Many thanks for your help!!!! &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>