Report Design
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Report Design
Message Icon Topic: database location Post Reply Post New Topic
Author Message
kimt
Newbie
Newbie
Avatar

Joined: 06 Oct 2009
Online Status: Offline
Posts: 39
Quote kimt Replybullet Topic: database location
    Posted: 08 Aug 2013 at 11:19am
When starting a .net solution, the database is normally located in the bin\debug directory. However, when deploying the project, the database is in application startup path which forces this user to make the change in the report.

Is there a better way to make the location of the db?

Thank you.
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 09 Aug 2013 at 4:42am
The simplest solution in my mind is to not have the report 'pull' the data from the database at all.

Have you application gather the data and 'push' it to the report via a ADO.Net(XML) connection for the report.

Now the location of the database as far as reporting goes is irrelevant, the report gets the data and displays it.

The problem becomes parameters, which I got around using my parameter input form (which also allows much better control over the selection and display of parameters)

Yes, it is probably more work than you wanted, and so may not be the solution that you use, but it is one way around your issue.

The other thought is to create the db in a set location like: c:\program files\your app\db or any other location.

HTH
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.031 seconds.