B
barbara_dave
Hi,
I have some code worked for VS2003 .NET but doesn't work for VS 2005.
Could somebody see what is wrong?
chartspace1.DataSource = spreadsheet1.GetOcx()
Dim oChart As OWC10.ChChart
Dim oSer As OWC10.ChSeries
oChart = chartspace1.Charts.Add()
oChart.HasLegend = True
oChart.Legend.Position =
OWC10.ChartLegendPositionEnum.chLegendPositionBottom oChart.Type =
OWC10.ChartChartTypeEnum.chChartTypeRadarLine
oSer = oChart.SeriesCollection.Add
oSer.SetData(OWC10.ChartDimensionsEnum.chDimSeriesNames, 0, "A4")
oSer.SetData(OWC10.ChartDimensionsEnum.chDimValues, 0, "B4:G4")
the error message is "Value does not fall within the expect range"
Thanks for the help!
I have some code worked for VS2003 .NET but doesn't work for VS 2005.
Could somebody see what is wrong?
chartspace1.DataSource = spreadsheet1.GetOcx()
Dim oChart As OWC10.ChChart
Dim oSer As OWC10.ChSeries
oChart = chartspace1.Charts.Add()
oChart.HasLegend = True
oChart.Legend.Position =
OWC10.ChartLegendPositionEnum.chLegendPositionBottom oChart.Type =
OWC10.ChartChartTypeEnum.chChartTypeRadarLine
oSer = oChart.SeriesCollection.Add
oSer.SetData(OWC10.ChartDimensionsEnum.chDimSeriesNames, 0, "A4")
oSer.SetData(OWC10.ChartDimensionsEnum.chDimValues, 0, "B4:G4")
the error message is "Value does not fall within the expect range"
Thanks for the help!