Tee Chart Not allowing me to create 2 lines

TeeChart for ActiveX, COM and ASP
Post Reply
amueller
Newbie
Newbie
Posts: 30
Joined: Tue Jul 26, 2005 4:00 am

Tee Chart Not allowing me to create 2 lines

Post by amueller » Tue Apr 11, 2006 3:08 pm

Hello,

I have put a project on the news server for attachments. I have been having a problem drawing lines on the chart for some reason. The code worked prior to switching around the series (I previously drew 2 lines before the database data was drawn as a 3rd point, now I draw the database points first and the 2 lines last). Now, when it gets to the second line, I get a typecast error.

Please check out this code for me because I have been spending days on it and am apparenlty too dumb to figure it out for myself.

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

Post by Narcís » Tue Apr 18, 2006 9:26 am

Hi amueller,

The problem may be related to that you are trying to add a data point to a series using the First and Last method when the series don't even have any datapoing. This what happens the first time you run this. Can you please check if that's the problem? You could also try if it works manually adding values to the series, without using a DB.
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

Post Reply