Crystal Report: Disable login prompt

To make sure your Crystal Report does not prompt you for login when you call it, you will have to do the following steps:

  1. Pass the correct [user id] and [user password] to the database connection
  2. Do not use integrated security

For example, I create a Crystal Report with VS2010 and I call it cr_test. So the code (in C#) will be:

cr_test cr_t = new cr_test();
cr_t.SetDatabaseLogon("id", "pwd");
cr_t.DataSourceConnections[0].IntegratedSecurity = false;
....

Hope it helps.

4 responses to “Crystal Report: Disable login prompt”

  1. really helpful tips. Thank you

    Like

    1. You’re welcome, VTechnology.

      Like

  2. Richmond Boateng

    i have no password or authentication for my ms access database so how do i set a password for it

    Like

    1. Have you tried blank username and password?

      Like

Leave a comment

Tony Wijaya

My programming tips