cancel
Showing results for 
Search instead for 
Did you mean: 

Set the Database connection in report at runtime in VB 6.0

Former Member
0 Kudos

Hi,

I have a report created in CR XI that connects to the oracle server. The report works fine if I have same Service name in the tnsnames.ora file which I had used while creating the report.

But I dont want that. I want that I pass a recordset directly to the report and it uses the connection that was used to create the recordset. but it doesnt do that and I get "Failed to open the connection" error

This is the way I have the code

dim lrpt as CRAXDRT.Report

AdoRecordset.open (ReportQueryString)

lrpt.Database.SetDataSource (AdoRecordSet)

Can someone tell how can I make this working??

Thanks,

Reena

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Please re-post if this is still an issue to the Legacy Application Development SDKs Forum or purchase a case and have a dedicated support engineer work with you directly

Former Member
0 Kudos

Hi Reena,

If you have code related issue.

Post your question in Development - Forum

Business Objects SDK Application Development

Link is here :

[https://www.sdn.sap.com/irj/sdn/businessobjects-sdk-forum]

Regards,

Shweta

Former Member
0 Kudos

Why do people always post dead links?