Page 1 of 1
ActiveX component can't create object: 'TeeChart.TChart'
Posted: Fri Jun 11, 2004 5:03 pm
by 6924764
I was trying some new things with CAB file/OCX... and I am no longer able to create charts.
I get...
ActiveX component can't create object: 'TeeChart.TChart'
When it hits this line...
Set Chart1 = CreateObject("TeeChart.TChart")
I tried uninstalling TeeChart then re-installing. It still does not work. Any suggestions?
Thx
Posted: Sun Jun 13, 2004 11:04 pm
by Pep
Hi,
do you've more than one TeeChart Pro version installed on your system (for example v5 and v6) ? If yes, then you must use :
Set Chart1 = CreateObject("TeeChart.TChart.5")
or :
Set Chart1 = CreateObject("TeeChart.TChart.6")
instead of :
Set Chart1 = CreateObject("TeeChart.TChart")
version 5 vs. version ?
Posted: Mon Jun 14, 2004 5:41 pm
by 6924764
Thanks for the reply.
I changed the command to:
Set Chart1 = CreateObject("TeeChart.TChart.5")
and the graphing functionality is back, thanks!
But, I only have version 5. Is there a way I can check to see what is installed (intentionally or otherwise)? How can I uninstall all versions and only run v5?
Thanks,
Don
Posted: Mon Jun 14, 2004 10:48 pm
by Pep
Hi Don,
But, I only have version 5. Is there a way I can check to see what is installed (intentionally or otherwise)? How can I uninstall all versions and only run v5?
You can check that you don't have more than one TeeChart Pro installed in the "Add/Remove Programs" or searchin for TeeChart in the RegEdit. In case you wanto do unisntall all of installations you can use the Add/Remove programs, and if you still having any TeeChart registered use the following :
regsvr32 "c:\Path\TeeChart5.ocx" /u
to unregister.