<?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 access Activex controls from forms</title><link>https://www.infopathdev.com:443/forums/thread/28519.aspx</link><pubDate>Mon, 05 May 2008 22:48:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28519</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28519.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=28519</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m not overly familiar with how ActiveX controls interface with InfoPath code (if at all). The control creator could probably give you more detail. There might be some way to interface with them, though I suspect not.&lt;/p&gt;
&lt;p&gt;All of the built-in controls are NOT accessible via code. They are all auto-updating, etc. It is my understanding that ActiveX controls need to be designed the same way and that they too have no code hookup to work with.&lt;/p&gt;
&lt;p&gt;Maybe someone can prove me wrong and give you some other helpful info...&lt;/p&gt;</description></item><item><title>Programmatically access Activex controls from forms</title><link>https://www.infopathdev.com:443/forums/thread/28460.aspx</link><pubDate>Thu, 01 May 2008 16:29:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28460</guid><dc:creator>epic_add</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28460.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=28460</wfw:commentRss><description>&lt;p&gt;My form uses an Activex control bound to an xmlNode.&amp;nbsp;&amp;nbsp;Is it possible to access its methods programmatically from a script, like:&lt;/p&gt;
&lt;p&gt;function CTRL4_5::OnClick(eventObj)&lt;br /&gt;{&lt;br /&gt;var x = GetObject( &amp;quot;???&amp;quot;, &amp;quot;MyActiveX.MyClass&amp;quot;);&lt;br /&gt;var s = x.calculate();&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;If not what might be the way to accomplish this?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you in advance!&lt;/p&gt;
&lt;p&gt;Radu&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>