<?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: Submit to external code</title><link>https://www.infopathdev.com:443/forums/thread/14334.aspx</link><pubDate>Fri, 24 Feb 2006 15:13:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14334</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14334.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14334</wfw:commentRss><description>Ok, I think I see what you're trying to do now. Sorry for misunderstanding earlier.&lt;br /&gt;&lt;br /&gt;I was working on something similiar to this recently, actually. My goal was to call an InfoPath form from within an application, passing a parameter in to switch to a specific view depending on the state of the application, receive data in InfoPath, write to XML, and have the application read the XML. I found this page to be helpful:&lt;br /&gt;&lt;br /&lt;a target="_blank" href=http://geekswithblogs.net/bpaddock/archive/2004/05/14/4907.aspx&gt;http://geekswithblogs.net/bpaddock/archive/2004/05/14/4907.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;However, you are trying to do a little more than I was trying to do by actually catching events in InfoPath in another application. I don't know if this is possible, but you might be able to hack your way into it. One idea might be to have InfoPath write out an XML file within the event handlers that you are trying to catch and have your application "watching" for these XML files, and once they are found run your code. That's just a thought. Anyway, if I understand correctly what you are trying to do, I think it will be rather difficult.&lt;br /&gt;&lt;br /&gt;I hope this helps, please let us know if you figure it out, I would be interested to see what you come up with.&lt;br /&gt;&lt;br /&gt;---------------&lt;br /&gt;Matt Faus&lt;br /&gt;InfoPath Dev Texas&lt;br /&gt;</description></item><item><title>Re: Submit to external code</title><link>https://www.infopathdev.com:443/forums/thread/14333.aspx</link><pubDate>Fri, 24 Feb 2006 06:01:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14333</guid><dc:creator>kikhan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14333.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14333</wfw:commentRss><description>Thanks for replying Faus.&lt;br /&gt;&lt;br /&gt;Basically my application will load the form at runtime i.e. I don't have the form at design time that is why I said my windows application is not an InfoPath Project. &lt;br /&gt;&lt;br /&gt;I have InfoPath Toolkit for VS.Net 2003 installed. &lt;br /&gt;&lt;br /&gt;My target is to load the form at runtime like &lt;br /&gt;&lt;a href='http://blogs.msdn.com/bowerm/articles/211757.aspx' target='_blank' title='http://blogs.msdn.com/bowerm/articles/211757.aspx'&lt;a target="_blank" href=http://blogs.msdn.com/bowerm/articles/211757.aspx&gt;http://blogs.msdn.com/bowerm/articles/211757.aspx&lt;/a&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;but this solution uses explorer control to display the form, while my requirement is to control the form programatically, receive events and manipulate form fields.</description></item><item><title>Re: Submit to external code</title><link>https://www.infopathdev.com:443/forums/thread/14332.aspx</link><pubDate>Thu, 23 Feb 2006 14:22:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14332</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14332.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14332</wfw:commentRss><description>You will have to install the Toolkit for Visual Studio in order to use managed code behind InfoPath forms. If you are using Visual Studio 2003 you can download the toolkit from the link on the left side of this page. If you are using Visual Studio 2005, you will have to download the toolkit from MSDN, or order a CD.&lt;br /&gt;&lt;br /&gt;Once the toolkit is installed, open Visual Studio, select New | Project from the File menu, and then select InfoPath Form Template from the appropriate section in the New Project Wizard.&lt;br /&gt;&lt;br /&gt;Once you click Next it will ask you whether you would like to create a new form template or import one. Select import and then browse to the .xsn that you have saved. After completing this you should be able to design your form in InfoPath and then add code in Visual Studio. Please note that if you were using a scripting language behind the template before the old code will not translate into the new managed code language and you will need to rewrite all of that logic.&lt;br /&gt;&lt;br /&gt;I hope this helps!&lt;br /&gt;&lt;br /&gt;---------------&lt;br /&gt;Matt Faus&lt;br /&gt;InfoPath Dev Texas&lt;br /&gt;</description></item><item><title>Submit to external code</title><link>https://www.infopathdev.com:443/forums/thread/12787.aspx</link><pubDate>Thu, 23 Feb 2006 07:19:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12787</guid><dc:creator>kikhan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12787.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12787</wfw:commentRss><description>Hi. &lt;br /&gt;&lt;br /&gt;I used the method describe at&lt;br /&gt;&lt;br /&gt;&lt;a href='http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=1609' target='_blank' title='http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=1609'&lt;a target="_blank" href=http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=1609&gt;http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=1609&lt;/a&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I have a windows application can now open a infopath form from a template on local disk. Now, is there anyway to have a submit/save button on form and when user clciks on this button, a c# event handler handels the request. &lt;br /&gt;&lt;br /&gt;the windows application is not a InfoPath project.</description></item></channel></rss>