DataSource via ADO.Net environment

TeeChart for ActiveX, COM and ASP
Post Reply
Nina
Newbie
Newbie
Posts: 3
Joined: Tue Oct 28, 2008 12:00 am

DataSource via ADO.Net environment

Post by Nina » Thu Nov 13, 2008 11:00 am

Hi.
I use ActiveX (v.8) in the VB.NET 2003 environment.

The following code worked fine in the evaluation version, but in the PRO version I receive the error message while assignind the DataSource.

Dim StrCom As String = "SELECT * FROM tblYearVolumes"
daVolumes = New OleDbDataAdapter(StrCom, TestConn)

daVolumes.Fill(MasterDataSet, "tblYearVolumes")
tbl = MasterDataSet.Tables("tblYearVolumes")

Me.GraphCoded.Series(0).DataSource = tbl

Could you help me?
Thanks in advance.
Nina.

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

Post by Narcís » Thu Nov 13, 2008 11:06 am

Hi Nina,

Are you using the same registered version build as you used for the evaluation version?

For example, if you are using TeeChart Pro v8.0.0.5 ActiveX registered version did you use v8.0.0.5 evaluation version or you used an earlier one?

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

Nina
Newbie
Newbie
Posts: 3
Joined: Tue Oct 28, 2008 12:00 am

Post by Nina » Thu Nov 13, 2008 11:51 am

Hi!
My current version is v8.0.0.5.
I do not think that the evaluation version was the same (there is a lot of differenties also in objects). The previous evaluation version was uninstalled and I can't find its version now.

Please, answer me, what I do wrong in my code?
Is it possible to use ADO.NET data table the way I've tried?
What is the right way to bind data?

Thank you.

Nina.

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

Post by Narcís » Mon Nov 17, 2008 1:54 pm

Hi Nina,

We don't think this could work before as TeeChart ActiveX doesn't support ADO.NET directly over a dataset. You'll have to iterate the dataset manually and add data to your series using AddXY method.
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

Nina
Newbie
Newbie
Posts: 3
Joined: Tue Oct 28, 2008 12:00 am

Post by Nina » Mon Nov 17, 2008 2:35 pm

Thank you

Post Reply