Zoom in aspx webchart using Delphi 2006
Posted: Fri Jul 21, 2006 11:38 am
Hi,
I am testing some of the charting functionality with TeeChart.NET and I have managed to get an ASP.NET website running using Delphi 2006 with some webcharts.
I am having trouble when trying to use the zoomtool though for the charts.
I have translated the code in the zooming example from C# to Delphi and it compiles fine but whenever I try and actually zoom, I get an error message saying words to the effect of "invalid parameter" on the following line in the CheckZoom function...
zoomedState=((Steema.TeeChart.Tools.ZoomTool)wChart.Chart.Tools[0]).SetCurrentZoom(Request,zoomedState);
which I have translated to...
zoomedstate:=Steema.TeeChart.Tools.ZoomTool(wChart.Chart.Tools[0]).SetCurrentZoom(Request,zoomedState);
Are there any working examples of this code in Delphi available or can someone provide me with some insight as to what I'm doing wrong.
On the first call to the CheckZoom function, the ZoomState parameter that is passed to the SetCurrentZoom method is null.
The version of TeeChart I have is
2.0.2306.26231 and since I'm using Delphi 2006, I am only developing for .NETv1.1
Thanks
I am testing some of the charting functionality with TeeChart.NET and I have managed to get an ASP.NET website running using Delphi 2006 with some webcharts.
I am having trouble when trying to use the zoomtool though for the charts.
I have translated the code in the zooming example from C# to Delphi and it compiles fine but whenever I try and actually zoom, I get an error message saying words to the effect of "invalid parameter" on the following line in the CheckZoom function...
zoomedState=((Steema.TeeChart.Tools.ZoomTool)wChart.Chart.Tools[0]).SetCurrentZoom(Request,zoomedState);
which I have translated to...
zoomedstate:=Steema.TeeChart.Tools.ZoomTool(wChart.Chart.Tools[0]).SetCurrentZoom(Request,zoomedState);
Are there any working examples of this code in Delphi available or can someone provide me with some insight as to what I'm doing wrong.
On the first call to the CheckZoom function, the ZoomState parameter that is passed to the SetCurrentZoom method is null.
The version of TeeChart I have is
2.0.2306.26231 and since I'm using Delphi 2006, I am only developing for .NETv1.1
Thanks