leechoonhwee
asked on
Crystal Report Logon method
Hi all,
I have the following logon which works fine with ODBC
For Each Table In theReport.Database.Tables
Dim Logon As CrystalDecisions.Shared.Ta bleLogOnIn fo
Logon = Table.LogOnInfo
Logon.ConnectionInfo.Serve rName = "ODBCServerName"
Logon.ConnectionInfo.Datab aseName = "MyDatabase"
Logon.ConnectionInfo.Passw ord = "MyPassword"
Logon.ConnectionInfo.UserI D = "MyUserID"
Table.ApplyLogOnInfo(Logon )
Next
However, I switched service provider which does not have ODBC available and in this case, how do I modify the above to convert the ODBC to ip address instead?
I have the following logon which works fine with ODBC
For Each Table In theReport.Database.Tables
Dim Logon As CrystalDecisions.Shared.Ta
Logon = Table.LogOnInfo
Logon.ConnectionInfo.Serve
Logon.ConnectionInfo.Datab
Logon.ConnectionInfo.Passw
Logon.ConnectionInfo.UserI
Table.ApplyLogOnInfo(Logon
Next
However, I switched service provider which does not have ODBC available and in this case, how do I modify the above to convert the ODBC to ip address instead?
Hi, to which database you will be connecting now?
ASKER
I have migrated everything to another service provider and hence everything is the same except the server
Therefore, in the past I am using ODBC but now I have to use IP address instead
Therefore, in the past I am using ODBC but now I have to use IP address instead
Try to change this with the ipaddress:
Logon.ConnectionInfo.Serve rName = "IPAddress" provided that your databasename, username & password are the same on the new provider as well.
Logon.ConnectionInfo.Serve
ASKER
I tried that of course but it does not work. I was on the impression that
Logon.connectioninfo.serve rname only refers to DSN name only?
Logon.connectioninfo.serve
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.