4
Answers

Crystal reports asking for database login credentials

i create C# project with access database and use the Crystal Report for reporting but when i run the report a Popup window appears asking Database login ID and Password and when i enter the password it ask again and again.
 
i tried this code;
  1. crys.SetDatabaseLogon("""abcd", @"|DataDirectory|\\MAARS Database\\MAARSdb.mdb","Access");  
  2.                 crys.DataSourceConnections[0].IntegratedSecurity = false;  
 

Answers (4)