Forums - C# Corner

Forum guidelines
Rizwan Ahmed

Rizwan Ahmed

  • 1.6k
  • 72
  • 819

Crystal reports asking for database login credentials

Dec 6 2018 12:27 PM
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)