Hi
Can anyone help with a problem that's doesn't make any sense.
I am running a CR 8.5 report from VB6. The connection is made via an ODBC.
I am setting the location as follows:
--------------------------
Dim crxTable As CRAXDRT.DatabaseTable
For Each crxTable In report.Database.Tables
crxTable.SetLogOnInfo "Moon_DSN","", UID, Pwd
If crxTable.TestConnectivity = False Then
Err.Raise 1, "RunReport", "Failed to connect"
End If
Next
---------------------------
(UID and Pwd are variables passed to the procedure)
But this doesn't work!
In the Locals window you can see that the LogonServerName for the table changes but Location and LogonDatabaseName don't, and it tries to run the report against the ODBC connection that the report was created against.
My customer is creating hell about this so I'd appreciate any (quick!) help anyone can give.
Thanks
Sam
Can anyone help with a problem that's doesn't make any sense.
I am running a CR 8.5 report from VB6. The connection is made via an ODBC.
I am setting the location as follows:
--------------------------
Dim crxTable As CRAXDRT.DatabaseTable
For Each crxTable In report.Database.Tables
crxTable.SetLogOnInfo "Moon_DSN","", UID, Pwd
If crxTable.TestConnectivity = False Then
Err.Raise 1, "RunReport", "Failed to connect"
End If
Next
---------------------------
(UID and Pwd are variables passed to the procedure)
But this doesn't work!
In the Locals window you can see that the LogonServerName for the table changes but Location and LogonDatabaseName don't, and it tries to run the report against the ODBC connection that the report was created against.
My customer is creating hell about this so I'd appreciate any (quick!) help anyone can give.
Thanks
Sam