473,770 Members | 3,912 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Crystal Reports - Database Login prompt

2 New Member
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 2884
showhertheohface
3 New Member
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 CrystalReportVi ewer)
Dim Counter As Integer
For Counter = 1 To MyCrystal.LogOn Info.Count
With MyCrystal.LogOn Info(Counter - 1).ConnectionIn fo
.ServerName = "SQLA" '"YOURSERVER "
.DatabaseName = "YOURDATABA SE"
.UserID = "sa"
.Password = "YOURPASSWO RD"
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
1870
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 displayed a login prompt even though the (Access) database was unsecured. According to http://www.experts-exchange.com/Databases/Crystal_Reports/Q_20544428.html, this is due to a problem that Crystal has when using a connection based on the OLEDB Jet...
1
7330
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 the problem. We keep getting prompted for a database login when we try to view reports that connect to our SQL Server database. We have tried using every combination of connection strings and methods, all with the login information saved. We...
0
1148
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 loading it asks me to log in to the database and i dont know what to write because i am new to all of this. i dont know what to write in the server name i know the database name but should i add the path to it there is no password on the database so i...
2
6368
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
34789
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 data from ADO.NET Datasets that are pre-populated by other modules of the application. What I need to do is to use these datasets as the datasources of my reports. Fine, I know how to do that and it works perfectly on my development box. The...
2
2451
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 be a need for it to connect to any database because the dataset is populated with everything I need and passed to the report using SetDataSource... I'm using all the correct merge modules (Database_access2003, Managed2003, regwiz2003, CRT71 and...
12
14061
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 the form. Now my problem is when i try to open Crystal report thro VB.net, it will prompt for database login password, which i have already supplied in Crystal report and also thro the application.(I am using DSN based connection) Please help me...
2
1747
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 for the data. data is a input string that is the XML encoded version of the data. try { DataSet dtsData=new DataSet();
2
1823
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) to produce reports. This worked fine while viewing the report in the design viewer however when i ran the aplication it asked for login details, and i could not get past that. Now i have moved on to sql databases also unsecure. Now there are no...
0
9439
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10237
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10071
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10017
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9882
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6690
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5326
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3589
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2832
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.