大虾请进.关于OLAP/OFFICE WEB COMPOENTS的问题,chartspace如何显示adomd的数据
铁歌 2004-12-22 06:15:53 当我把office web components 引入到VB.NET中,其中pivotable可以通过connectionstring和commandtext设置获得正确的表,但chartspace同样设置却不行,请问如何解决?
我的代码如下:
With Me.AxChartSpace1
'.ChartSpaceTitle.Caption = Me.TreeView1.SelectedNode.Text
.HasChartSpaceTitle = True
.ChartSpaceTitle.Caption = Me.TreeView1.SelectedNode.Text
.ConnectionString = conn_olap.ConnectionString '此处是PRIVODER=OLAP...
.CommandText() = strMdxQuery '此处是MDX 查询在MDX应用中通过
.Charts(0).Type = OWC10.ChartChartTypeEnum.chChartTypeBarClustered3D
End With
注:同样代码,PivotTable却可以