Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I'm using Crystal reports as a part of Microsoft Visual studio .net 2002. I'm using field definition file (ttx) and a datatable as a datasource for report. (In VB .net code, Datatable is filled with data and then is set to be datasource for the report). Program works fine on the development PC. But when I try to show report on some other PC, 'Database login' dialog appears. How can I avoide this dialog?

 

Any help would be appreciated :-))

  • 2 weeks later...
  • 3 weeks later...
  • 1 year later...
Posted

I have the same problem and I did this:

 

Dim rpt As New CrystalDecisions.CrystalReports.Engine.ReportDocument

rpt.Load("CrystalReport1.rpt")

rpt.SetDatabaseLogon("user", "pass", "server", "db")

 

is not working :( . On the dev pc is working, but when I deploy the kit to other pc , the login apears.

Posted
What are you using for the database server? Does the user you specify have permissions to the database?

 

thanks for the quick reply

 

Database is Mysql server ODBC installed.

 

I made the permissions for database, but maybe I missed something. Please tell me all the places where I can set permisions for that DB.

 

thanks a lot.

  • 4 years later...
Posted

FIX FOR - Crystal Report displays database login page for VS2003 .Net Crystal Report

 

I finally was able to resolve this problem. I spent more than two weeks:mad: pondering:confused: on this problem. I had all my crystal Reports developed on a VS 2003 .Net platform. The Crystal Reports are based on ADO.Net datasets (XML). They were working fine at all the 17 clients but when we recently deployed it to a new client in a virtual environment, we got the above error where the Crystal report was asking for database credentials.

Our App already sets the LogOnInfo for each table, subreport, section. Finally after weeks of research through various blogs, Crystal (SAP/Business Objects) support websites.... I found that the problem lies within the current version of your crdbadoplus.dll. It doesn't matter where this dll is there on your machine, but in my case this dll was causing the logon window to come up everytime, the crystal report was launched from the application. To fix the problem. Copy crdbadoplus.dll (Version: 9.2.0.29) into the application root folder where it was deployed to eg: C:\Program Files\Your Client Application\ and :cool: the database logon window stopped popping.....So if all fails please try to get this dll..and try it....Good luck guys...(May be this will help lots of ppl who are spending hours and hours on the net trying to find a resolution to this problem.). Please let me know if this worked for you guys....

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...