I have a c# program that uses crystal reports to print a quote. When I run the code off the internet site it does not bring up the database name in the logon screen of crystal reports nor does it allow me to enter this. When I run the program off the web server it shows the database name and allows me to login.
Does anyone know what is wrong here.

you can pass the logon information dynamically to Crystal Report from C# source code, if you do like that you haven't met the problem again. see below src code

ConnectionInfo crConnectionInfo = new ConnectionInfo();

crConnectionInfo.ServerName = "YOUR SERVER NAME";
crConnectionInfo.DatabaseName = "YOUR DATABASE NAME";
crConnectionInfo.UserID = "YOUR DATABASE USERNAME";
crConnectionInfo.Password = "YOUR DATABASE PASSWORD";

Full source code :

http://csharp.net-informations.com/crystal-reports/csharp-crystal-reports-dynamic-login.htm

try this and reply back if you face any problem.

jerry.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.