473,404 Members | 2,178 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,404 software developers and data experts.

How to pass database login screen

Hi
I'm developing a project and in the project, I used crystal report. Firstly
my database isn't protected with password. After finishing project I
determined a password for my database.
Firstly I opened my database as private usage. I determined a database
password. Only password, there iso no login ID or user ID.

After that, I edited my crystal report.In the crystal report I changed only
jet database password. In the report parameter form(windows form) I added
codes shown below ;

crMyReport cr = new crMyReport();
TableLogOnInfo logOnInfo = new TableLogOnInfo ();

CrystalDecisions.Shared.TableLogOnInfo tliCurrent;

int i = 0;
foreach (CrystalDecisions.CrystalReports.Engine.Table tbCurrent in
cr.Database.Tables)

{

tliCurrent = tbCurrent.LogOnInfo;

tliCurrent.ConnectionInfo.UserID =string.Empty;

tliCurrent.ConnectionInfo.Password = string.Empty;

tliCurrent.ConnectionInfo.DatabaseName = "C:\\DB\\SERVER_DB.mdb";

tbCurrent.ApplyLogOnInfo(logOnInfo);

}

cr.SetParameterValue("PARAM1",3);

cr.SetParameterValue("PARAM2",5);

crViewer.ReportSource = cr;

But a form is shown as database login. The form wants to me table name(it is
written automatically,I can't change this value), server, database
name,userID and password.

I tried with some values but I couldn't run my report. I didn't determine
any user ID and password. I'm not sure server and database name values. What
are they? How can I run my report with these parameter?

I'm using ole db 4.0 database.

Thanks.

Nov 17 '05 #1
0 1609

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Nathan Given | last post by:
I run a book exchange web site based in PHP with a mysql database. Many users have having trouble logging in. Here is a description of the problem. A user types in his/her username and...
1
by: Ron L | last post by:
I am trying to setup a solution that will include a client which will access a database via remoting calls. I am hosting my remoting project in IIS, and am using Windows Integrated security. ...
0
by: Bassem | last post by:
Hi All, I had problem when using Crystal Report in C# windows application. I create report depend upon dataset using table from SQL 2000 and add it in a C# windows application. NP: The...
1
by: Mythran | last post by:
I keep getting the exception, "Cannot open database requested in login 'dbblah'. Login fails. Login failed for 'domain\user'". I have ASPNET setup as the user in IIS, identity impersonate is true...
9
by: dana lees | last post by:
Hello, I am developing a C# asp.net application. I am using the authentication and authorization mechanism, which its timeout is set to 60 minutes. My application consists of 2 frames - a...
1
by: beachboy | last post by:
how can pass the login (security info) to secondary application? ASP.NET 1.1 user login to application 1(app1.myapp.com) with their username and password, then they have a link to application 2...
4
by: jeffreywgraham | last post by:
A word of warning, I am new to .NET and fairly new to SQL Server. The problem I have must be a common one, but I am uable to make it work. I have a .NET project and have the user management and...
10
by: =?Utf-8?B?UmljaGFyZCBCeXNvdXRo?= | last post by:
Hi In my app I have a SplashScreen, a login form and a main form. On launching the app, I'd like to show the SplashScreen while reading config files and attempting a database connection. I show...
4
by: Gaz | last post by:
I am having a bit of a problem getting my application to work properly. RIght here is my problem... WHen my C# windows app loads up the start form, i create a new thread and show the splash...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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:
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...
0
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...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.