Hi everyone...Im trying to use the OWC on my ASP.NET pages, but i can seem to get it working. I follow an example of a page, step by step, but the graphic doesn't appear...the code is this
ChartSpace1 = New OWC.ChartSpace()
ChartSpace1.Charts.Add(0)
ChartSpace1.Charts(0).SeriesCollection.Add(0)
ChartSpace1.Charts(0).SeriesCollection(0).Type = OWC.ChartChartTypeEnum.chChartTypeScatterMarkers
ChartSpace1.Charts(0).SeriesCollection(0).SetData(OWC.ChartDimensionsEnum.chDimSeriesNames, CType(OWC10.ChartSpecialDataSourcesEnum.chDataLiteral, Int32), aN)
ChartSpace1.Charts(0).SetData(OWC.ChartDimensionsEnum.chDimXValues, OWC.ChartSpecialDataSourcesEnum.chDataLiteral, aX)
ChartSpace1.Charts(0).SetData(OWC.ChartDimensionsEnum.chDimYValues, OWC.ChartSpecialDataSourcesEnum.chDataLiteral, aY)
this suppose to be a Scatter type of graphic, Where aN is the array wich contians the name of the points, and aX and aY ara the arrays that have the (X,Y) Coordanates of this points....the thing is that the code runs without a problem, but it doessn't create the graphic, and when i debug it I found that the line:
ChartSpace1.Charts(0).SeriesCollection(0).SetData(OWC.ChartDimensionsEnum.chDimSeriesNames, CType(OWC10.ChartSpecialDataSourcesEnum.chDataLiteral, Int32), aN)
always return "Expression does not produce a value" and so the line that suppose to setdata for the X axis and Y axis....does anyone knows what to do?...any Ideas??....any articles on how to make a graphic with this components??....thanks!!
ChartSpace1 = New OWC.ChartSpace()
ChartSpace1.Charts.Add(0)
ChartSpace1.Charts(0).SeriesCollection.Add(0)
ChartSpace1.Charts(0).SeriesCollection(0).Type = OWC.ChartChartTypeEnum.chChartTypeScatterMarkers
ChartSpace1.Charts(0).SeriesCollection(0).SetData(OWC.ChartDimensionsEnum.chDimSeriesNames, CType(OWC10.ChartSpecialDataSourcesEnum.chDataLiteral, Int32), aN)
ChartSpace1.Charts(0).SetData(OWC.ChartDimensionsEnum.chDimXValues, OWC.ChartSpecialDataSourcesEnum.chDataLiteral, aX)
ChartSpace1.Charts(0).SetData(OWC.ChartDimensionsEnum.chDimYValues, OWC.ChartSpecialDataSourcesEnum.chDataLiteral, aY)
this suppose to be a Scatter type of graphic, Where aN is the array wich contians the name of the points, and aX and aY ara the arrays that have the (X,Y) Coordanates of this points....the thing is that the code runs without a problem, but it doessn't create the graphic, and when i debug it I found that the line:
ChartSpace1.Charts(0).SeriesCollection(0).SetData(OWC.ChartDimensionsEnum.chDimSeriesNames, CType(OWC10.ChartSpecialDataSourcesEnum.chDataLiteral, Int32), aN)
always return "Expression does not produce a value" and so the line that suppose to setdata for the X axis and Y axis....does anyone knows what to do?...any Ideas??....any articles on how to make a graphic with this components??....thanks!!