DB connection issue

Technical support for Spire.DataExport

Moderators: iceblue support, DataExport, Manager

DB connection issue

Postby Finalsky » Tue Feb 22, 2011 5:28 am

"Yesterday, I used Spire.DataExport to export data from database, but I can't connect my database, here I give you my code:
OleDbConnection oleDbConnection = new OleDbConnection();
oleDbConnection.ConnectionString = this.txtCollectionString.Text;
System.Data.OleDb.OleDbCommand oleDbCommand = new System.Data.OleDb.OleDbCommand();
oleDbCommand.CommandText = this.txtCommandText.Text;
Can you help me?? Thank you in advance."
Posts: 13
Joined: Wed Dec 22, 2010 1:12 am

Re: DB connection issue

Postby iceblue support » Thu Feb 24, 2011 2:43 am

I have realized your problem. After initializing the oleDbConnection and oleDbCommand, you should connect them with the following code: oleDbCommand.Connection = oleDbConnection;
e-iceblue support
User avatar
iceblue support
Posts: 244
Joined: Tue Dec 21, 2010 2:56 am

Return to Spire.DataExport

Who is online

Users browsing this forum: No registered users and 0 guests