How to programmatically access ActiveX chart control - InfoPath Dev
in

InfoPath Dev

How to programmatically access ActiveX chart control

Last post 06-11-2007 01:38 PM by yellowseed. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 05-05-2007 12:49 AM

    How to programmatically access ActiveX chart control

    Hello,

    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.

    The code I would like to write is something like:

    var chtObj = ????? (this is the bit that I can't figure out)

    // manipulate chart, add data, etc
    chtObj.SeriesCollections.Add(...)
    ...

    Does someone know how to do this?

    Regards,
    Trevor W
    Filed under:
  • 06-11-2007 01:38 PM In reply to

    Re: How to programmatically access ActiveX chart control

    As far as I can tell, there is no way to do this.  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.  If there's any way to refer to controls on the form rather than the data they're bound to, I'd be happy to know --
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.