VB .net 2002
crystal reports 9
.net framework 1.1
All connections worked on my box. Having compiled the application and run the .exe on a test box, I find all three db connections now fail. The MS documentation advised to include "Imports Microsoft.Data.Odbc" but that was not an option in my environment, so I tried "Imports Microsoft.VisualBasic.OpenAccess" in my vb file. It didn't work.
My connections to the 3 dbs are:
1. An odbc system connection using the format ...
Dim crDatabase As Database
Dim item As String
Dim crTables As Tables
Dim crTable As Table
Dim crTableLogOnInfo As TableLogOnInfo
Dim crConnectionInfo As ConnectionInfo
Dim subrpt As New ReportDocument()
With crConnectionInfo
.DatabaseName = ""
.Password = "xx"
.ServerName = "xxx"
.UserID = "xx"
End With
2. Dim m_cnADONetConnection As New OleDb.OleDbConnection()
m_cnADONetConnection.ConnectionString = "Provider=Microsoft.Jet.Oledb.4.0;Data Source=YYYYYYY\yy\ABC.mdb"
3. Dim m_cnADONetConnection2 As New OleDb.OleDbConnection()
m_cnADONetConnection2.ConnectionString = "Provider=Microsoft.Jet.Oledb.4.0;DataSource=BBBBBBBBBBB\bbbbbbbbbb\CC.mdb;"
Please help! What do I need to do now to make this work?
Much appreciated,
-Helen
crystal reports 9
.net framework 1.1
All connections worked on my box. Having compiled the application and run the .exe on a test box, I find all three db connections now fail. The MS documentation advised to include "Imports Microsoft.Data.Odbc" but that was not an option in my environment, so I tried "Imports Microsoft.VisualBasic.OpenAccess" in my vb file. It didn't work.
My connections to the 3 dbs are:
1. An odbc system connection using the format ...
Dim crDatabase As Database
Dim item As String
Dim crTables As Tables
Dim crTable As Table
Dim crTableLogOnInfo As TableLogOnInfo
Dim crConnectionInfo As ConnectionInfo
Dim subrpt As New ReportDocument()
With crConnectionInfo
.DatabaseName = ""
.Password = "xx"
.ServerName = "xxx"
.UserID = "xx"
End With
2. Dim m_cnADONetConnection As New OleDb.OleDbConnection()
m_cnADONetConnection.ConnectionString = "Provider=Microsoft.Jet.Oledb.4.0;Data Source=YYYYYYY\yy\ABC.mdb"
3. Dim m_cnADONetConnection2 As New OleDb.OleDbConnection()
m_cnADONetConnection2.ConnectionString = "Provider=Microsoft.Jet.Oledb.4.0;DataSource=BBBBBBBBBBB\bbbbbbbbbb\CC.mdb;"
Please help! What do I need to do now to make this work?
Much appreciated,
-Helen