ValueToPoint always give me "Invalid parameters", Urgent!!!

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.
 
A

Alvin Bruney [Microsoft MVP]

Why is this urgent?

Value to point is retrieves information of data on the client. The server,
does not contain that information. Therefor the parameter is invalid.

--
Regards
Alvin Bruney
[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
available at www.lulu.com/owc, Amazon, B&H etc
 
E

ethanc

Thanks Alvin.

So the ValueToPoint() method can't be used in server side.
I have to give up my solution. The help doc of OWC does not say
this method can not be used in server side.

Because the image can be produced in server side, so I believe that
the coordinate object can also be produecd in server side. If server
does not contain that information, server will not be able to produce
image. But actually the server can.

In my solusion, the coordinate x and y will be used to create hyperlinks
for those data points on the image produced at server side. So client
need to get the every data points' coordinate x and y.

As you know, to install owc on all the client mechines is not acceptable
to our customers.

Thanks again, Alvin.

Ethan

Alvin Bruney said:
Why is this urgent?

Value to point is retrieves information of data on the client. The server,
does not contain that information. Therefor the parameter is invalid.

--
Regards
Alvin Bruney
[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
available at www.lulu.com/owc, Amazon, B&H etc
-------------------------------------------------------------------------- -----


ethanc said:
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.
 
E

ethanc

Thanks Alvin.

So This method can't be used in server side. I have to give up my solution.
The help doc of OWC does not say this method can't be used in server side.
But the image can be produced in server side by getpicture() method,
so I believe that the coordinate object can also be produced in server side.




Alvin Bruney said:
Why is this urgent?

Value to point is retrieves information of data on the client. The server,
does not contain that information. Therefor the parameter is invalid.

--
Regards
Alvin Bruney
[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
available at www.lulu.com/owc, Amazon, B&H etc
-------------------------------------------------------------------------- -----


ethanc said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top