Data Connectivity
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Data Connectivity
Message Icon Topic: System Database Path CR XI Post Reply Post New Topic
Author Message
rturner003
Newbie
Newbie
Avatar

Joined: 23 Oct 2007
Location: United Kingdom
Online Status: Offline
Posts: 1
Quote rturner003 Replybullet Topic: System Database Path CR XI
    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
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.047 seconds.