To make sure your Crystal Report does not prompt you for login when you call it, you will have to do the following steps:
- Pass the correct [user id] and [user password] to the database connection
- 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.
Leave a comment