Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crystal Report Problem after Deployment (w/ .msm's)

Status
Not open for further replies.

sjf905

Programmer
Sep 20, 2006
13
US
Hello,

I have a Windows Application that will successfully deploy in all respects but one. The application takes user input, stores it in a database, and builds a Crystal Report from the database. This works fine before deployment.

When I deploy and install the application, everything works fine except that when I try to build the Crystal Report, I get the last one that was created before the deployment build, everytime. User input works fine, it does update the database everytime, but I always am left with the last Crystal Report that was genreated before deployment when I try to create a new one.

I am using .NET 2003, Bundled Crystal Reports for VS .NET, and have included the following Merge Modules in the setup project:

-Crystal_Database_Access2003.msm
-Crystal_Database_Access2003_enu.msm
-Crystal_Managed2003.msm
-Crystal_regwiz2003.msm

My Crystal Reports version is unregistered but I do include the correct license key.

Thanks for any help.
 
**Update:
The error is that my report fields are based off a database with a static path to my debug folder. I do include the database in deploy but the app keeps looking at the db in my debug folder rather than the folder that the user puts my app in. I need to set up the report so that the path will look something like:

Application.StartupPath.ToString() + "\\MyDatabase.mdb

Anyone know how to do that?
 
I base my reports off of datasets if I have to use an Access database. I put the actual database in an App_Data folder within the application. Then the report is based on the dataset. The report is then not coupled to an explicit file location.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top