Set Datasource In Code Follow

0
Avatar
Legacy Poster

How would I set the Datasource in a .NET application, is it possible?

2 comments

0
Avatar
Legacy Poster
Comment actions Permalink

I found the answer in another topic posted in 2012:

 

Thnaks to Shotaro for posting the code.

 

http://forums.seagullscientific.com/index.php?/topic/525-sample-code-create-and-assign-csv-database/

0
Avatar
Legacy Poster
Comment actions Permalink

Also, you can pass to your BarTender.Format a complete SQL string like something:

btFormat.Databases.GetDatabase(1).OLEDB.SQLStatement = sql
 

where sql is a string like "SELECT field_list FROM table ..."

Please sign in to leave a comment.