Compiling Visual Basic with TeeChart Controls

TeeChart for ActiveX, COM and ASP
Post Reply
TSE
Newbie
Newbie
Posts: 3
Joined: Fri Sep 28, 2007 12:00 am

Compiling Visual Basic with TeeChart Controls

Post by TSE » Fri Feb 18, 2011 11:18 am

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?

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Compiling Visual Basic with TeeChart Controls

Post by Sandra » Fri Feb 18, 2011 2:29 pm

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,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

TSE
Newbie
Newbie
Posts: 3
Joined: Fri Sep 28, 2007 12:00 am

Re: Compiling Visual Basic with TeeChart Controls

Post by TSE » Wed Feb 23, 2011 10:56 am

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.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Compiling Visual Basic with TeeChart Controls

Post by Narcís » Wed Feb 23, 2011 11:00 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

TSE
Newbie
Newbie
Posts: 3
Joined: Fri Sep 28, 2007 12:00 am

Re: Compiling Visual Basic with TeeChart Controls

Post by TSE » Wed Mar 02, 2011 9:19 am

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.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Compiling Visual Basic with TeeChart Controls

Post by Sandra » Wed Mar 02, 2011 4:20 pm

Hello TSE,

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

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply