473,395 Members | 1,383 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Crystal Reports - Database Login prompt

I am updating a C# Windows Application that has two reports created with Crystal Reports in VS 2005. The two exisitng reports work correctly with no problems. However, I have created a third report (this is the first one I have created from scratch) and when I run it either with the debugger or in the production version, I get a Database Login screen dialog box with the Server Name and Database fields protected and already populated with incorrect information. The other two previously existing reports do not have this problem. When I step through it with the debugger, my new report uses the exact same functionality as the two working reports and I am not finding any other differences in the code. Does anyone have any suggestions?

Thanks.
Apr 20 '07 #1
1 2818
I've had this problem before:

1. Add the SetCrystalLogin Object on your button click or whatever you use to open the Crystal Report.
2. Add the code in 2 to a class and call it with your database info.

---------------------------------------------------------------------------------------

1. SetCrystalLogin(Me.Direct_Mail_Crystal_Object)


2. Shared Sub SetCrystalLogin(ByRef MyCrystal As CrystalReportViewer)
Dim Counter As Integer
For Counter = 1 To MyCrystal.LogOnInfo.Count
With MyCrystal.LogOnInfo(Counter - 1).ConnectionInfo
.ServerName = "SQLA" '"YOURSERVER"
.DatabaseName = "YOURDATABASE"
.UserID = "sa"
.Password = "YOURPASSWORD"
End With
Next Counter
End Sub


This should work.

Erik Roessing
Apr 20 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Bob Rosen | last post by:
Based on the information I have now, the answer would seem to be No. Does anyone have information to the contrary? Here's the problem. On my first attempt to display a report, Crystal...
1
by: Kevin | last post by:
I'm at the end of my rope. We have been trying to deploy Crystal Reports over our website. We have tried every report configuration we can think of and cannot seem to resolve this issue. Here is...
0
by: lilush | last post by:
Hello, I use vsnet 2002 and i use an access database. i have created a few reports and on the computer with the vs it all works but when i put it on a different computer when the report is...
2
by: Stu | last post by:
Hi there, I am trying to set up a Crystal Report with the following tables: Customer Info: -Name -Address -CustomerID Orders:
7
by: TJoker .NET | last post by:
I'm developing an VB.NET Windows Forms application that uses CR for VS.NET (original version shipped with VS.NET 2002 - my VS.NET has the latest SP installed, no SPs for CR). My reports get their...
2
by: Chris Ashley | last post by:
I have a crystal report using a Dataset which is populated at Runtime. It works fine on my development machine, but when I deploy it to a test machine I get a 'Database Login' box. There shouldn't...
12
by: Murali via DotNetMonster.com | last post by:
Hi All I am new to .net, as i worked majorily on VB6.0 & Crystal reports, I have developed an Window application in VB.net/SQL Server2000 and using Crystal reports8.5, I have used the CRViewer in...
2
by: chris.dannemiller | last post by:
The Crystal Reports Database login screen is coming up on some random clients we cannot determine the source of the issue. No database login is required whatsoever, we are simply using a XML packet...
2
daniel aristidou
by: daniel aristidou | last post by:
Hi guys, its been a while. Ive finally got crystal reports for visual basic studio 2008, and i keep getting problem after problem using it. At first i coneected to an access databse(unsecure)...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.