Please forgive me if this question is really simple, but I am a relative novice and haven't had to do much coding in years!
I am calling a Crystal Report (8.5) from VB6, and then trying to export in a PDF format. I think I have the correct code, but I am having problems making the connection to the database. If I was using a Crystal Reports object, my connection would look like this:
CR1.Connect = "ODBC;DSN=DSNName;UID=UserName;PWD=Password;DATABASE=DBName"
According to the help file, I need to use this:
crxApplication.LogOnServer(pDllName As String, pServerName As String, [pDatabaseName], [pUserID], [pPassword])
The report connects to a SQL Server, so I tried as follows, but it did not work:
crxApplication.LogOnServer("SQLSRV32.DLL", "ActualServerName", "ActualDBName", "UserID", "Password")
The error said the library SQLSRV3d.DLL could not be found.
Am I on the right track using the .LogOnServer? Or do I need to use a different sort of connection object?
Thanks!
I am calling a Crystal Report (8.5) from VB6, and then trying to export in a PDF format. I think I have the correct code, but I am having problems making the connection to the database. If I was using a Crystal Reports object, my connection would look like this:
CR1.Connect = "ODBC;DSN=DSNName;UID=UserName;PWD=Password;DATABASE=DBName"
According to the help file, I need to use this:
crxApplication.LogOnServer(pDllName As String, pServerName As String, [pDatabaseName], [pUserID], [pPassword])
The report connects to a SQL Server, so I tried as follows, but it did not work:
crxApplication.LogOnServer("SQLSRV32.DLL", "ActualServerName", "ActualDBName", "UserID", "Password")
The error said the library SQLSRV3d.DLL could not be found.
Am I on the right track using the .LogOnServer? Or do I need to use a different sort of connection object?
Thanks!