Print Page | Close Window

System Database Path CR XI

Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
Forum Name: Data Connectivity
Forum Discription: How to connect to data sources and export reports
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=1553
Printed Date: 02 May 2025 at 10:14am


Topic: System Database Path CR XI
Posted By: rturner003
Subject: System Database Path CR XI
Date Posted: 23 Oct 2007 at 4:07am

I use the following code to login to a crystal report based arround an ms access database

<add key ="AccessDB" value="d:\goldmine\orielgold\Goldmine.mdb"/>

ConnectionInfo crInfo = new ConnectionInfo(); 

crInfo.DatabaseName = appSettings.Settings[
"AccessDB"].Value;

crInfo.ServerName = appSettings.Settings["AccessDB"].Value;

crInfo.UserID = "";

crInfo.Password = "";

 

I need to do this now to a secured version. I have modified the above code to

ConnectionInfo crInfo = new ConnectionInfo();

crInfo.DatabaseName = appSettings.Settings["AccessDB"].Value;

crInfo.ServerName = appSettings.Settings["AccessDB"].Value;

crInfo.UserID = "Goldmine";

crInfo.Password = "orielgold";

BUT how do I specify the location/path/name of the system.mdw file?

In previous version there was a .add property but this does not appear in VS2005/CR XI R2 system.



-------------
Regards
Robert T Turner



Print Page | Close Window