Page 1 of 1

How to access MDB database for TeeChart for .NET

Posted: Tue Jul 21, 2009 9:37 am
by 15653074
I have just installed the TeeChart.NET and try to evaluate an application from program in Visual Studio 2008.

Is it possible to connect to Access MDB DB direct from the data binding properties GUI interface and not by code like that?

'Connect to database
Set Conn = Server.CreateObject("ADODB.Connection")
Set RSt = Server.CreateObject("ADODB.RecordSet")
db = "TrueGas.mdb"
strConn = "DBQ="+server.mappath(db)+";DefaultDir=;DRIVER={Microsoft Access
Driver (*.mdb)};"
Conn.Open strConn
strSql = "select * from OnLineGas where tname='TM8#1' order by SAMPLEDT ASC"

Rst.Open strsql, Conn, 1, 3

Thanks
Hovav Talpaz

Re: How to access MDB database for TeeChart for .NET

Posted: Tue Jul 21, 2009 9:48 am
by narcis
Hi Hovav,

Yes, you could try using BindingSource as described here:

http://www.teechart.net/support/viewtop ... f=4&t=3337