ActiveX component can't create object: 'TeeChart.TChart'

TeeChart for ActiveX, COM and ASP
Post Reply
TChartUser
Newbie
Newbie
Posts: 12
Joined: Fri Nov 15, 2002 12:00 am
Location: San Diego, CA

ActiveX component can't create object: 'TeeChart.TChart'

Post by TChartUser » Fri Jun 11, 2004 5:03 pm

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

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Sun Jun 13, 2004 11:04 pm

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")

TChartUser
Newbie
Newbie
Posts: 12
Joined: Fri Nov 15, 2002 12:00 am
Location: San Diego, CA

version 5 vs. version ?

Post by TChartUser » Mon Jun 14, 2004 5:41 pm

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

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Jun 14, 2004 10:48 pm

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.

Post Reply