<?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>Accessing code in InfoPath 2003 forms from Visual Studio 2005</title><link>https://www.infopathdev.com:443/forums/thread/58784.aspx</link><pubDate>Wed, 08 Sep 2010 11:49:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58784</guid><dc:creator>JBryant</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/58784.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=58784</wfw:commentRss><description>&lt;p&gt;Can vbscript code contained in an InfoPath 2003 form be accessed from VS2005 on a machine running Office 2010?&lt;/p&gt;
&lt;p&gt;We are testing Office 2010 our our PC&amp;#39;s and the custom task pane&amp;nbsp;code that works just fine on PC&amp;#39;s running Office/InfoPath 2007 does not run on the test PC&amp;#39;s. I&amp;#39;ve been reading that the vbscript code in the form&amp;nbsp;can&amp;#39;t be edited directly when opening the form in InfoPath 2010, but that&amp;#39;s not what I&amp;#39;m trying to do. I want to access the vbscript code through the &lt;strong&gt;.Extension&lt;/strong&gt; property of the XDocument object&amp;nbsp;from client side javascript code on an .aspx page like we have done for years.&lt;/p&gt;
&lt;p&gt;The existing code, which runs perfectly&amp;nbsp;on PC&amp;#39;s with Office/InfoPath 2007, &amp;nbsp;looks like this&amp;nbsp;...&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;var&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; xDoc = window.external.Window.XDocument;&lt;br /&gt;&lt;font size="2"&gt;xDoc.Extension.UserLookupDone (userid);&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;
&lt;p&gt;&lt;font size="2"&gt;When run on PC&amp;#39;s with Office/InfoPath 2010 the code throws error &amp;quot;Class doesn&amp;#39;t support Automation&amp;quot;. Are we trying something that is no longer possible?&amp;nbsp;Any help is appreciated.&lt;/p&gt;&lt;/font&gt;</description></item></channel></rss>