|
getLeftX not working |
Posted by AidanG on Dec-08-2011 20:44 |
|
Hi,
I'm trying to use the getLeftX() method on a textbox as follows:
$textbox->getLeftX();
and getting the error:
Fatal error: Call to undefined method TextBox::getLeftX()
...it doesn't seem to recognise the method at all!
I am on v5, I just checked by calling getVersion(), which returned 83886082.
Any ideas?
Thanks
Aidan |
Re: getLeftX not working |
Posted by Peter Kwan on Dec-09-2011 01:41 |
|
Hi AidanG,
I suspect you are mixing ChartDirector Ver 4 and Ver 5 together. The DLL "chartdir.dll" or shared object "libchartdir.so" are of Ver 5.0.2, but the "phpchartdir.php" is of Ver 4.1.
It is common for a developer to copy "phpchartdir.php" to his own script directory. When the ChartDirector is upgraded, he may forget to upgrade the "phpchartdir.php" in his own script directory. So the script may end up using the old version of "phpchartdir.php" with the new version of the shared object.
Would you mind to double check if you have the an old version of "phpchartdir.php" being used by your scripts? If this is the case, please kindly replace it by the latest "phpchartdir.php" (the one that comes with ChartDirector Ver 5.0.2).
Hope this can help.
Regards
Peter Kwan |
Re: getLeftX not working |
Posted by AidanG on Dec-09-2011 20:19 |
|
Thanks Peter, that does indeed appear to have been the problem! |
|