Page 1 of 1

Compiling Visual Basic with TeeChart Controls

Posted: Fri Feb 18, 2011 11:18 am
by 15046853
I have inherited a Visual Basic 6.0 program containing TeeChart routines. I have included TeeChart Pro ActiveX Control v8, but when I try to compile it I get the error 'method or data member not found at the command:

TChart1.Tools.Items(0).asDrawLine.AddLine x1, y1, x2, y2

The error occurs at the .Tools part of the command.

I am not sure if it is a TeeChart ActiveX problem or a Visual Basic one.

Any ideas?

Re: Compiling Visual Basic with TeeChart Controls

Posted: Fri Feb 18, 2011 2:29 pm
by 10050769
Hello TSE,

Next lines of code, work fine for me using last version 8 of TeeChartActiveX:

Code: Select all

TChart1.Tools.Add tcDrawLine
TChart1.Tools.Items(0).asDrawLine.AddLine X1, Y1, X2, Y2
Could you say us which version 8 of TeeChart are you using?

Thanks,

Re: Compiling Visual Basic with TeeChart Controls

Posted: Wed Feb 23, 2011 10:56 am
by 15046853
I have Version 8.0.0.3.

I inherited both the program and the ActiveX control from a retired colleague via our IT Support department.

Re: Compiling Visual Basic with TeeChart Controls

Posted: Wed Feb 23, 2011 11:00 am
by narcis
Hi TSE,

Latest TeeChart Pro v8 ActiveX release available at the client download area is v8.0.0.8. Can you please try if this version solves the problem at your end?

Thanks in advance.

Re: Compiling Visual Basic with TeeChart Controls

Posted: Wed Mar 02, 2011 9:19 am
by 15046853
I have installed v8.0.0.8. The problem remains. In the 'Insertable Objects' part of the Components dialog TeeChart Pro ActiveX Control v8 appears 13 times. TeeChart only appears as a selected control if all 13 objects are selected. This does not seem right. After upgrading to v8.0.0.8, I believe this number increased.

Re: Compiling Visual Basic with TeeChart Controls

Posted: Wed Mar 02, 2011 4:20 pm
by 10050769
Hello TSE,

Could you please try to arrange a simple example project we can run as-is to reproduce exactly the problem here.

Thanks,