使用微软的office web component(OWC)控件的chart时,在某些机器上,鼠标右健点击图表区域事,出现菜单上可以选择“Commands and Option”菜单项,但在另外一些机器上,该菜单相是灰色,禁止选择,这是什么原因?请各位大夏出手相救(在VC开发环境)

解决方案 »

  1.   

    如果你相应的机器上安装了相应的Office软件,并且有Lisence,OWC就可以和用户交互,否则OWC组件就是只读的。
      

  2.   

    我们用的版本已经不用licence 了
      

  3.   

    我们用的版本10.0已经不用licence 了,还有什么其他的建议吗
      

  4.   

    AllowPropertyToolbox  Property
    Determines whether the user can display the Commands and Options dialog box at run time. Setting the AllowPropertyToolbox property to False disables the Commands and Options button on the toolbar. The default value is True. Read/write Boolean.
    ChartSpace.AllowPropertyToolbox = False
    or 
    ChartSpace.AllowPropertyToolbox = True
      

  5.   

    DisplayPropertyToolbox Property
    Set this property to True to display the Command and Options window. Read/write Boolean.ChartSpace.DisplayPropertyToolbox = False
    or 
    ChartSpace.DisplayPropertyToolbox = True这个用了没?
    如果还不行,我就不知道了。我也希望知道还有什么其它原因。
      

  6.   

    还有你说你们的版本已经不用Lisence了,这话听起来有点混淆。
    OWC是不用Lisence的,它的Lisence是用的相应版本Office的。
    也就是说如果你机器上安装了Office,并且你的Office是有Lisence的,那么OWC也以交互,否则就不行。
    不知道你是不是这个意思?