It can't update ActiveX graph info in PowerPoint2010 RRS feed

  • Question

  • I have a activx graph, when I set some data in graph's property, It  can change graph info at once in Powerpoint2007's slideshow status!

    but now in Powerpoint2010, it can't works in slideshow, but I can see the correct graph in design slide after I switch to design slide with Alt+Tab! If I set graph visible =false, then set graph visible =true, it can display correct graph info in powerpoint2010!

    What's reason for this status? Any question is thanks!


    • Moved by Cindy Meister MVPModerator Tuesday, February 15, 2011 12:24 PM not VSTO technology (From:Visual Studio Tools for Office)
    Tuesday, February 15, 2011 9:12 AM

All replies

  • Hi Steven

    I've moved your question to the "General Office Development" forum as that's where PowerPoint questions go on MSDN. The PowerPoint specialists are to be found on "Answers" (, but I'm not sure whether to recommend you ask there because not all the details of your problem are clear:

    1. "Activex graph": Can you please be more specific about what this is? Is this an Excel chart? Or one from MS Graph? Something else?

    2. Could you please show us the code you use to update it?

    3. Is there a reason that you can't set the graph's visibility to false, then back to true, while the slide show is running?

    Cindy Meister, VSTO/Word MVP
    Tuesday, February 15, 2011 12:28 PM
  • Thanks for your answer!

    1, Activex Graph is not Excel chart or MS graph, it is our develop active x control

    2, Code as following

      object[] invokeArgs;

    object objGraph = m_shpGraph.OLEFormat.Object;
                    invokeArgs = new object[] { false };
                    objGraph.GetType().InvokeMember("Visible",      System.Reflection.BindingFlags.SetProperty, null, objGraph, invokeArgs);

                                    invokeArgs = new object[] { 23 };
                                    System.Reflection.BindingFlags.SetProperty, null, objGraph, invokeArgs);

        invokeArgs = new object[] { true };
                            System.Reflection.BindingFlags.SetProperty, null, objGraph, invokeArgs);
    m_shpGraph.Visible = Microsoft.Office.Core.MsoTriState.msoTrue;           

    //node: m_shaGraph is my active control on powerpoint2010

    3, if we set graph visibility to false, then set data, then back to true, it is not any change at once, u need set true after set false for a while, then it can change graph info


    Wednesday, February 16, 2011 1:35 AM