Quantcast
Channel: SCN : Unanswered Discussions - SAP Crystal Reports, version for Visual Studio
Viewing all articles
Browse latest Browse all 2556

How to maintain connection to MS Access Database when deploying Application

$
0
0

Hi,

 

My Application uses an MS ACCESS Database that is stored in the Debug Directory.

 

Whilst on the development machine, the crystal reports behave as required.

 

When I deploy the application onto a workstation, the application works fine, but crystal reports is still pointing the location as on the development machine.

 

After copying all the reports to the debug directory, most errors are eliminated however the connection to database is still causing a problem.

 

I have tried this without success:

 

                crConnectionInfo.AllowCustomConnection = true;

                string rptPath = Application.StartupPath;

                crConnectionInfo.DatabaseName = rptPath + @"\POSRSI.mdb";

                crConnectionInfo.UserID = "";

                crConnectionInfo.Password = "";

 

 

How can I programmatically, change the crystal reports connection path?

 

Your help is appreciated.


Viewing all articles
Browse latest Browse all 2556

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>