473,849 Members | 1,802 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 22929
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 crConnectionInf o = new ConnectionInfo( );

crConnectionInf o.ServerName = "127.0.0.1" ;

crConnectionInf o.DatabaseName = "CTP";

crConnectionInf o.UserID = "test";

crConnectionInf o.Password = "test";

foreach (CrystalDecisio ns.CrystalRepor ts.Engine.Table table in
reportDocument1 .Database.Table s)

{

TableLogOnInfo crTableLogonInf o = new TableLogOnInfo( );

crTableLogonInf o.TableName = table.Name;

crTableLogonInf o.ConnectionInf o = crConnectionInf o;

crTableLogonInf os.Add( crTableLogonInf o);

table.ApplyLogO nInfo( crTableLogonInf o);

}

CrystalReportVi ewer1.LogOnInfo = crTableLogonInf os;

"Michael S" <sc*******@blue win.ch> wrote in message
news:e3******** ******@TK2MSFTN GP12.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.mach in AT dot.state.fl.us > schrieb im Newsbeitrag
news:OR******** ******@TK2MSFTN GP10.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 crConnectionInf o = new ConnectionInfo( );

crConnectionInf o.ServerName = "127.0.0.1" ;

crConnectionInf o.DatabaseName = "CTP";

crConnectionInf o.UserID = "test";

crConnectionInf o.Password = "test";

foreach (CrystalDecisio ns.CrystalRepor ts.Engine.Table table in
reportDocument1 .Database.Table s)

{

TableLogOnInfo crTableLogonInf o = new TableLogOnInfo( );

crTableLogonInf o.TableName = table.Name;

crTableLogonInf o.ConnectionInf o = crConnectionInf o;

crTableLogonInf os.Add( crTableLogonInf o);

table.ApplyLogO nInfo( crTableLogonInf o);

}

CrystalReportVi ewer1.LogOnInfo = crTableLogonInf os;

"Michael S" <sc*******@blue win.ch> wrote in message
news:e3******** ******@TK2MSFTN GP12.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*******@blue win.ch> wrote in message
news:ev******** ******@TK2MSFTN GP11.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.mach in AT dot.state.fl.us > schrieb im Newsbeitrag news:OR******** ******@TK2MSFTN GP10.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 crConnectionInf o = new ConnectionInfo( );

crConnectionInf o.ServerName = "127.0.0.1" ;

crConnectionInf o.DatabaseName = "CTP";

crConnectionInf o.UserID = "test";

crConnectionInf o.Password = "test";

foreach (CrystalDecisio ns.CrystalRepor ts.Engine.Table table in
reportDocument1 .Database.Table s)

{

TableLogOnInfo crTableLogonInf o = new TableLogOnInfo( );

crTableLogonInf o.TableName = table.Name;

crTableLogonInf o.ConnectionInf o = crConnectionInf o;

crTableLogonInf os.Add( crTableLogonInf o);

table.ApplyLogO nInfo( crTableLogonInf o);

}

CrystalReportVi ewer1.LogOnInfo = crTableLogonInf os;

"Michael S" <sc*******@blue win.ch> wrote in message
news:e3******** ******@TK2MSFTN GP12.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
603
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 perfectly fine on all my PCs (Windows 2000, XP Pro), and work OK on my clients XP Home machines Problem only occurs on my clients XP Pro machines, these are out of the box Dell machines with XP Preloaded Can't understand why only these PCs...
1
4683
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 crConnectionInfo.ServerName = "servername" crConnectionInfo.DatabaseName = "dbname"
3
3794
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 why is the bloody thing doing this. The paths have been checked and are correct. The crystal Report is a .rpt file. Not one created in the VS.net IDE but in crystal itself.
7
34809
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...
1
13981
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 prompts you for any necessary login information. My goal was to provide the login information by means of code, so that the user is not prompted for any login information. I tried to write the following code to achieve that purpose. On running the...
19
4398
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 thought it might have to do with the regristration key, but that ok, when I right click on Servers in the server explorer and then expand the Crystal Server, there is a red x beside the Crystal Enterprise. When I click on log in, I am asked for a
12
14085
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...
0
1987
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 ReportDocument component from Toolbox | Components (its Name: Report) and specified my existing report class (myproject.import.reports.shiporder). 3. in DataBinding of above viewer, I choosed Simple binding and selected my report. 4. on Page_Load event...
2
917
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 app, it promt me for a database password, which is 123, but i want to bypass that step, meaning when i run the app, it will automatically view the report without promting for password. please help..
0
9738
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
10665
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...
0
10349
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
9501
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7894
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5735
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...
0
5921
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4544
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3177
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.