Re: ValueToPoint always give me "Invalid parameters", Urgent!!!
- From: "Alvin Bruney [Microsoft MVP]" <www.lulu.com/owc>
- Date: Mon, 1 Aug 2005 11:45:07 -0400
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" <ethanc@xxxxxxxx> wrote in message
news:OpywrFolFHA.360@xxxxxxxxxxxxxxxxxxxxxxx
> 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.
>
>
.
- Follow-Ups:
- References:
- Prev by Date: Re: How to use Setdata to set Categories
- Next by Date: Binding controls on data access page to a SQL stored procedure
- Previous by thread: ValueToPoint always give me "Invalid parameters", Urgent!!!
- Next by thread: Re: ValueToPoint always give me "Invalid parameters", Urgent!!!
- Index(es):
Relevant Pages
|