How to access MDB database for TeeChart for .NET

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Hovav
Newbie
Newbie
Posts: 1
Joined: Thu Apr 30, 2009 12:00 am
Contact:

How to access MDB database for TeeChart for .NET

Post by Hovav » Tue Jul 21, 2009 9:37 am

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

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

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

Post by Narcís » Tue Jul 21, 2009 9:48 am

Hi Hovav,

Yes, you could try using BindingSource as described here:

http://www.teechart.net/support/viewtop ... f=4&t=3337
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