Page 1 of 1

DataSource via ADO.Net environment

Posted: Thu Nov 13, 2008 11:00 am
by 15050693
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.

Posted: Thu Nov 13, 2008 11:06 am
by narcis
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.

Posted: Thu Nov 13, 2008 11:51 am
by 15050693
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.

Posted: Mon Nov 17, 2008 1:54 pm
by narcis
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.

Posted: Mon Nov 17, 2008 2:35 pm
by 15050693
Thank you