Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: 2 Databases Post Reply Post New Topic
Author Message
lw00
Newbie
Newbie
Avatar

Joined: 25 Sep 2008
Online Status: Offline
Posts: 14
Quote lw00 Replybullet Topic: 2 Databases
    Posted: 28 Jul 2009 at 7:00pm
Hi,

I have 2 databases and want to run my reports on either/or depending on some variables that are not inputted by the user.  Is there a way to run a program in a different language and pick the database to run my reports on? 
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 29 Jul 2009 at 6:29am
well, yes and no.  If you bind the report to the database...by using a stored proc or a direct table join, then no, you can't dynamically change the report, for so many reasons.
 
If you have an application, then there are some options. If your report is set up to use OLE connection, you can set that in the app, but the easier and cleaner way is to have the application retrieve the data and then pass all the data to the report via ADO.Net (basically and XML file).  The report doesn't care where the data came from, as long as the structure is correct it will process it.  This is how all of my reports get their data.
 
HTH
IP IP Logged
lw00
Newbie
Newbie
Avatar

Joined: 25 Sep 2008
Online Status: Offline
Posts: 14
Quote lw00 Replybullet Posted: 29 Jul 2009 at 7:49pm
Thanks lockwelle.  I will look into using .NET to implement this functionality.  
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.018 seconds.