<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: How to programmatically access ActiveX chart control</title><link>https://www.infopathdev.com:443/forums/thread/20601.aspx</link><pubDate>Mon, 11 Jun 2007 20:38:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20601</guid><dc:creator>yellowseed</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20601.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=20601</wfw:commentRss><description>As far as I can tell, there is no way to do this.&amp;nbsp; It seems that the only thing any code bound to a form or wrapped inside a control has access to is the data model, made available as a DOM supporting XPath queries.&amp;nbsp; If there&amp;#39;s any way to refer to controls on the form rather than the data they&amp;#39;re bound to, I&amp;#39;d be happy to know --&lt;br /&gt;</description></item><item><title>How to programmatically access ActiveX chart control</title><link>https://www.infopathdev.com:443/forums/thread/19596.aspx</link><pubDate>Sat, 05 May 2007 07:49:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19596</guid><dc:creator>trevorw1</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19596.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=19596</wfw:commentRss><description>&lt;font face="Verdana, Arial, Helvetica" size="2"&gt;Hello, 
 &lt;br /&gt; 
 
 &lt;br /&gt; 
I have an InfoPath form with a Microsoft Office 11.0 Chart Control in the default view. How do I get a reference to the Chart object in  
 JScript? I wish to access properties of the chart programmatically, so that I can link the chart to data in the form, but I have no idea how to get a reference to the chart object in the first  
 place.&lt;br /&gt; 
 
 &lt;br /&gt; 
The code I would like to write is something like: 
 &lt;br /&gt; 
 
 &lt;br /&gt; 
var chtObj = ????? (this is the bit that I can&amp;#39;t figure out) 
 &lt;br /&gt; 
 
 &lt;br /&gt; 
// manipulate chart, add data, etc 
 &lt;br /&gt; 
chtObj.SeriesCollections.Add(...) 
 &lt;br /&gt; 
... 
 &lt;br /&gt; 
 
 &lt;br /&gt; 
Does someone know how to do this?&lt;br /&gt; 
 
 &lt;br /&gt; 
Regards,&lt;br /&gt; 
 
 Trevor W&lt;/font&gt;</description></item></channel></rss>