TheEntertainer
MIS
Dear All,
I apologise if this question has been asked and answered elsewhere on this forum, I've tried to look but can't find anything that explains it (simply enough anyway!).
After diming the appropriate objects :
Sub luck()
Dim application As CRAXDRT.application
Dim report As CRAXDRT.report
Dim export As CRAXDRT.ExportOptions
Dim ConnectionInfo As CRAXDRT.ConnectionProperties
Set application = CreateObject("CrystalRuntime.application.11")
Set report = application.OpenReport("H:\Report.rpt")
I used to connect to earlier versions of the Crystal RDC with (I think):
report.Database.Tables(1).SetLogOnInfo "Server", "", "User", "dPasswd"
But this dosn't seem to work with Crystal 11. It errors with the message
Run-Time Error '-2147189155' (80047e5d)':
Failed to open connection
if I do:
MsgBox report.SQLQueryString
MsgBox report.RecordSelectionFormula
I can get the recordselectionformula for the report, but I can't get anything for thre SQLQueryString as I'm not connected to the database.
Can someone just explain what the connection string should be for Crystal 11 RDC access to Oracle 9 database
If I've missed anything out then I apologise.
Thanks
I apologise if this question has been asked and answered elsewhere on this forum, I've tried to look but can't find anything that explains it (simply enough anyway!).
After diming the appropriate objects :
Sub luck()
Dim application As CRAXDRT.application
Dim report As CRAXDRT.report
Dim export As CRAXDRT.ExportOptions
Dim ConnectionInfo As CRAXDRT.ConnectionProperties
Set application = CreateObject("CrystalRuntime.application.11")
Set report = application.OpenReport("H:\Report.rpt")
I used to connect to earlier versions of the Crystal RDC with (I think):
report.Database.Tables(1).SetLogOnInfo "Server", "", "User", "dPasswd"
But this dosn't seem to work with Crystal 11. It errors with the message
Run-Time Error '-2147189155' (80047e5d)':
Failed to open connection
if I do:
MsgBox report.SQLQueryString
MsgBox report.RecordSelectionFormula
I can get the recordselectionformula for the report, but I can't get anything for thre SQLQueryString as I'm not connected to the database.
Can someone just explain what the connection string should be for Crystal 11 RDC access to Oracle 9 database
If I've missed anything out then I apologise.
Thanks