Dynamic Database Path Change in C# .NET

5 pts.
Tags:
.NET
Crystal Reports
Crystal Reports 9
Crystal Reports Templates
Dynamic Database Path
The Crystal Reports templates that our software uses are on the C: drive. The Crystal Reports templates selected database tables have a C: drive path. If the databases used by the report and the report templates are both on the C: drive, the reports appear correctly. If the databases are on the E: drive and the templates are on the C: drive, a Database Login dialog box with empty controls appears. If I attempt to remedy this problem by dynamically assigning a path for the database tables: oReportDocument.Database.Tables[0].Location = sReportDatabasePath0; oReportDocument.Database.Tables[1].Location = sReportDatabasePath1; oReportDocument.Database.Tables[2].Location = sReportDatabasePath2; the report is displayed, yet data from only one of the databases appear and the data from the other two databases do not appear. How do I dynamically assign a database table location in C# so that data from all three databases appear in the report. Thank you in advance for any help you may provide. Carlos
ASKED: October 19, 2008  10:08 PM
UPDATED: October 29, 2008  12:39 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

Sounds like a connectivity or permissions issue. Not sure what kind of servers you are using, but if you are using SQL Server, do you have remote connectivity allowed on the two servers not returning data? This can be set up through Surface Area Configuration.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following