E
ethanc
Hi,
I want to get a chart image at server side, and then send to client
by BinaryWrite method.
Before I send image, I also want to get the coordinate object by using
ValueToPoint() method. But it always gvie me "Invalid Parameter" error info,
even if the parameter I give it are just like 0, 5, etc.
My code is following:
<%
.....
NewChart.SeriesCollection(0).SetData chConstants.chDimSeriesNames,
chConstants.chDataLiteral, "Scatter" NewChart.SeriesCollection(0).SetData
chConstants.chDimXValues, chConstants.chDataLiteral, xArray
NewChart.SeriesCollection(0).SetData chConstants.chDimYValues,
chConstants.chDataLiteral, yArray
......
Dim oPoint, xValue, yValue
Set oPoint = NewChart.SeriesCollection(0).Points(0)
xValue = oPoint.GetValue(chConstants.chDimXValues)
xValue = oPoint.GetValue(chConstants.chDimYValues)
Dim coOrdinate, x0, y0
Set coOrdinate = NewChart.SeriesCollection(0).ValueToPoint(xValue, yValue)
<----"Invalid Parameter"
x0 = coOrdinate.x
y0 = coOrdinate.y
Response.BinaryWrite cs.GetPicture(PictType, 800, 600)
%>
Does anybody give me a answer, please?
Thank you very much.
It's urgent!!!
ethanc
My chart type is chChartTypeScatterMarkers.
I want to get a chart image at server side, and then send to client
by BinaryWrite method.
Before I send image, I also want to get the coordinate object by using
ValueToPoint() method. But it always gvie me "Invalid Parameter" error info,
even if the parameter I give it are just like 0, 5, etc.
My code is following:
<%
.....
NewChart.SeriesCollection(0).SetData chConstants.chDimSeriesNames,
chConstants.chDataLiteral, "Scatter" NewChart.SeriesCollection(0).SetData
chConstants.chDimXValues, chConstants.chDataLiteral, xArray
NewChart.SeriesCollection(0).SetData chConstants.chDimYValues,
chConstants.chDataLiteral, yArray
......
Dim oPoint, xValue, yValue
Set oPoint = NewChart.SeriesCollection(0).Points(0)
xValue = oPoint.GetValue(chConstants.chDimXValues)
xValue = oPoint.GetValue(chConstants.chDimYValues)
Dim coOrdinate, x0, y0
Set coOrdinate = NewChart.SeriesCollection(0).ValueToPoint(xValue, yValue)
<----"Invalid Parameter"
x0 = coOrdinate.x
y0 = coOrdinate.y
Response.BinaryWrite cs.GetPicture(PictType, 800, 600)
%>
Does anybody give me a answer, please?
Thank you very much.
It's urgent!!!
ethanc
My chart type is chChartTypeScatterMarkers.