473,413 Members | 1,833 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,413 software developers and data experts.

crystal report promt for database login => Why?

only my server get the report whitout the dialogue database login.
I think it is where the database is localhost and the crystal report know
not the connection string.

how I can crystal reports say where the database is?
Have anywhere a idee how a can fix this?

thank you

michael schindler

Nov 15 '05 #1
3 22901
Hi Michal,

This is the code I'm using, it works great IF it the datasource is a SQL
server, as we speek( or as I write ;) ) I'm been unable to get the thing
going on a dataset, but it works great on a SQL backend. The thing is that
you have to set the db info using code, when you do that you are ok.

Here is the code basically what you do is set the logon info on all the
tables of the report

Hope this help,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
ConnectionInfo crConnectionInfo = new ConnectionInfo();

crConnectionInfo.ServerName = "127.0.0.1";

crConnectionInfo.DatabaseName = "CTP";

crConnectionInfo.UserID = "test";

crConnectionInfo.Password = "test";

foreach (CrystalDecisions.CrystalReports.Engine.Table table in
reportDocument1.Database.Tables)

{

TableLogOnInfo crTableLogonInfo = new TableLogOnInfo();

crTableLogonInfo.TableName = table.Name;

crTableLogonInfo.ConnectionInfo = crConnectionInfo;

crTableLogonInfos.Add( crTableLogonInfo);

table.ApplyLogOnInfo( crTableLogonInfo);

}

CrystalReportViewer1.LogOnInfo = crTableLogonInfos;

"Michael S" <sc*******@bluewin.ch> wrote in message
news:e3**************@TK2MSFTNGP12.phx.gbl...
only my server get the report whitout the dialogue database login.
I think it is where the database is localhost and the crystal report know
not the connection string.

how I can crystal reports say where the database is?
Have anywhere a idee how a can fix this?

thank you

michael schindler


Nov 15 '05 #2
thank you

i'm very happy.

where i can set the logon info?
You have write on all the tables of the report?
Please can you me that a few explain more in detail?

thanl you

michael schindler

Please my english is very bad but i give my best that you me understand => I
hope :-)


"Ignacio Machin" <ignacio.machin AT dot.state.fl.us> schrieb im Newsbeitrag
news:OR**************@TK2MSFTNGP10.phx.gbl...
Hi Michal,

This is the code I'm using, it works great IF it the datasource is a SQL
server, as we speek( or as I write ;) ) I'm been unable to get the thing
going on a dataset, but it works great on a SQL backend. The thing is that
you have to set the db info using code, when you do that you are ok.

Here is the code basically what you do is set the logon info on all the
tables of the report

Hope this help,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
ConnectionInfo crConnectionInfo = new ConnectionInfo();

crConnectionInfo.ServerName = "127.0.0.1";

crConnectionInfo.DatabaseName = "CTP";

crConnectionInfo.UserID = "test";

crConnectionInfo.Password = "test";

foreach (CrystalDecisions.CrystalReports.Engine.Table table in
reportDocument1.Database.Tables)

{

TableLogOnInfo crTableLogonInfo = new TableLogOnInfo();

crTableLogonInfo.TableName = table.Name;

crTableLogonInfo.ConnectionInfo = crConnectionInfo;

crTableLogonInfos.Add( crTableLogonInfo);

table.ApplyLogOnInfo( crTableLogonInfo);

}

CrystalReportViewer1.LogOnInfo = crTableLogonInfos;

"Michael S" <sc*******@bluewin.ch> wrote in message
news:e3**************@TK2MSFTNGP12.phx.gbl...
only my server get the report whitout the dialogue database login.
I think it is where the database is localhost and the crystal report know not the connection string.

how I can crystal reports say where the database is?
Have anywhere a idee how a can fix this?

thank you

michael schindler



Nov 15 '05 #3
Hi Michael,

I set the logoninfo in the page load handler, before the call to DataBind()

It seems that you have to set the logon info on ALL the tables in the
report ( the code I sent do that ) , you see as far as today I have been
having lot of problems with CR, no matter what I do i'm not been able to run
the report using a dataset as source. and it seems that this is a common
problem with the .net version of CR.

If you have any further problems do not hesitate in post it and I will
answer if I know the solution and never mind in regards of the language, the
english is not my first language neither :)

Pd:
You could get a GOOD knowledge of CR form this link:
http://www.crystalreportsbook.com/

Hope this help,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Michael S" <sc*******@bluewin.ch> wrote in message
news:ev**************@TK2MSFTNGP11.phx.gbl...
thank you

i'm very happy.

where i can set the logon info?
You have write on all the tables of the report?
Please can you me that a few explain more in detail?

thanl you

michael schindler

Please my english is very bad but i give my best that you me understand => I hope :-)


"Ignacio Machin" <ignacio.machin AT dot.state.fl.us> schrieb im Newsbeitrag news:OR**************@TK2MSFTNGP10.phx.gbl...
Hi Michal,

This is the code I'm using, it works great IF it the datasource is a SQL
server, as we speek( or as I write ;) ) I'm been unable to get the thing
going on a dataset, but it works great on a SQL backend. The thing is that you have to set the db info using code, when you do that you are ok.

Here is the code basically what you do is set the logon info on all the
tables of the report

Hope this help,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
ConnectionInfo crConnectionInfo = new ConnectionInfo();

crConnectionInfo.ServerName = "127.0.0.1";

crConnectionInfo.DatabaseName = "CTP";

crConnectionInfo.UserID = "test";

crConnectionInfo.Password = "test";

foreach (CrystalDecisions.CrystalReports.Engine.Table table in
reportDocument1.Database.Tables)

{

TableLogOnInfo crTableLogonInfo = new TableLogOnInfo();

crTableLogonInfo.TableName = table.Name;

crTableLogonInfo.ConnectionInfo = crConnectionInfo;

crTableLogonInfos.Add( crTableLogonInfo);

table.ApplyLogOnInfo( crTableLogonInfo);

}

CrystalReportViewer1.LogOnInfo = crTableLogonInfos;

"Michael S" <sc*******@bluewin.ch> wrote in message
news:e3**************@TK2MSFTNGP12.phx.gbl...
only my server get the report whitout the dialogue database login.
I think it is where the database is localhost and the crystal report

know not the connection string.

how I can crystal reports say where the database is?
Have anywhere a idee how a can fix this?

thank you

michael schindler




Nov 15 '05 #4

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

Similar topics

1
by: david risby | last post by:
I'm getting an unwanted database login form appearing when I set the Data Source of a Crystal report to a .Net dataset e.g. myReport.SetDataSource(myDataSet This only occurs on some PCs, works...
1
by: codepuller | last post by:
Consider this approach: Embed the report in your project (add it to the project) Then put this code in the page that holds the viewer control 'Set the connection information...
3
by: Deasun | last post by:
I need some help please! Crystal is driving me nuts. Heres my code so far, see below. Problem: On the .export() line it comes back with error #5 Login failed! I know the login info is good so...
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...
1
by: Harshil | last post by:
Hi All, I am working on Vb.net application with oracle as my database. I have developed reports using crystal report 9. Usually when you open reports directly in crystal report viewer control it...
19
by: Michael O'Donnell | last post by:
Hi All Am having major problem with crystal reports...Have designed my report no problem, its when I try to run and display ther report that I am getting a "Login Failed" message. At first I...
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...
0
by: Tumurbaatar S. | last post by:
It's my first project using the Crystal report. I created a report with the report designer and linked it to a web form as: 1. put CrystalReportViewer in my page (its ID: Viewer). 2. put...
2
by: wassssup | last post by:
i am using C#, windows form and access database. i add a crystal report, report.rpt and a viewer, crystalReportViewer1 in a windows form. all my data is from a database called stock. when i run the...
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
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
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
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...
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,...
0
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...

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.