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

CrystalReportViewer

tg
My sincere apologies for the crosspost. I posted in one other ng. I am not
sure which is the correct ng for this question.I'm using .NET 2003. This is
the first time I've tried to use Crystal
within .NET. I'm connecting to an Oracle database. I'm using
System.Data.OracleClient, dll v1.1.4322. I can connect to the server
with no problem through the report. I place a Windows
CrystalReportViewer on a form, but when I run the form, I cannot
connect to the server. I am presented with a dialog box asking for
server name, user name, etc., but it gives me a dialog box stating it
cannot log on to server, after I enter the credentials.

I have the connection string set in the OracleConnection, and the
ReportSource is set on the CrystalReportViewer.

Can someone please offer help?

Many thanks
tjguillo
Nov 21 '05 #1
4 6569
Hi tjguillo,

Go to the report's database menu, set database location, properties. You
need to define the login elements inside the report, or you need to do it in
a report document object.

HTH,

Bernie Yaeger

"tg" <tg*******@pop-server.houston.rr.com> wrote in message
news:k0*******************@fe2.texas.rr.com...
My sincere apologies for the crosspost. I posted in one other ng. I am
not sure which is the correct ng for this question.I'm using .NET 2003.
This is the first time I've tried to use Crystal
within .NET. I'm connecting to an Oracle database. I'm using
System.Data.OracleClient, dll v1.1.4322. I can connect to the server
with no problem through the report. I place a Windows
CrystalReportViewer on a form, but when I run the form, I cannot
connect to the server. I am presented with a dialog box asking for
server name, user name, etc., but it gives me a dialog box stating it
cannot log on to server, after I enter the credentials.

I have the connection string set in the OracleConnection, and the
ReportSource is set on the CrystalReportViewer.

Can someone please offer help?

Many thanks
tjguillo

Nov 21 '05 #2
tg
Bernie -

I followed your suggestion. I get the same result.

tjguillo

"Bernie Yaeger" <be*****@cherwellinc.com> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
Hi tjguillo,

Go to the report's database menu, set database location, properties. You
need to define the login elements inside the report, or you need to do it
in a report document object.

HTH,

Bernie Yaeger

"tg" <tg*******@pop-server.houston.rr.com> wrote in message
news:k0*******************@fe2.texas.rr.com...
My sincere apologies for the crosspost. I posted in one other ng. I am
not sure which is the correct ng for this question.I'm using .NET 2003.
This is the first time I've tried to use Crystal
within .NET. I'm connecting to an Oracle database. I'm using
System.Data.OracleClient, dll v1.1.4322. I can connect to the server
with no problem through the report. I place a Windows
CrystalReportViewer on a form, but when I run the form, I cannot
connect to the server. I am presented with a dialog box asking for
server name, user name, etc., but it gives me a dialog box stating it
cannot log on to server, after I enter the credentials.

I have the connection string set in the OracleConnection, and the
ReportSource is set on the CrystalReportViewer.

Can someone please offer help?

Many thanks
tjguillo


Nov 21 '05 #3
Dim oRpt As New CrystalDecisions.CrystalReports.Engine.ReportDocum ent
oRpt.Load("c:\reportname.rpt")

Dim logonInfo As New CrystalDecisions.Shared.TableLogOnInfo()
Dim table As Table

' Set the logon information for each table.
For Each table In oRpt.Database.Tables
' Get the TableLogOnInfo object.
logonInfo = table.LogOnInfo
' Set the server or ODBC data source name, database name,
' user ID, and password.
logonInfo.ConnectionInfo.ServerName = "servername"
logonInfo.ConnectionInfo.DatabaseName = "databasename"
logonInfo.ConnectionInfo.UserID = "userid"
logonInfo.ConnectionInfo.Password = "password"
' Apply the connection information to the table.
table.ApplyLogOnInfo(logonInfo)
Next table

CrystalReportViewer1.ReportSource = oRpt

GK

"tg" <tg*******@pop-server.houston.rr.com> wrote in message
news:k0*******************@fe2.texas.rr.com...
My sincere apologies for the crosspost. I posted in one other ng. I am
not sure which is the correct ng for this question.I'm using .NET 2003.
This is the first time I've tried to use Crystal
within .NET. I'm connecting to an Oracle database. I'm using
System.Data.OracleClient, dll v1.1.4322. I can connect to the server
with no problem through the report. I place a Windows
CrystalReportViewer on a form, but when I run the form, I cannot
connect to the server. I am presented with a dialog box asking for
server name, user name, etc., but it gives me a dialog box stating it
cannot log on to server, after I enter the credentials.

I have the connection string set in the OracleConnection, and the
ReportSource is set on the CrystalReportViewer.

Can someone please offer help?

Many thanks
tjguillo

Nov 21 '05 #4
tg
Thanks Richard. Fits the bill...

"Richard" <kg@nospam.com> wrote in message
news:eM*************@TK2MSFTNGP14.phx.gbl...
Dim oRpt As New CrystalDecisions.CrystalReports.Engine.ReportDocum ent
oRpt.Load("c:\reportname.rpt")

Dim logonInfo As New CrystalDecisions.Shared.TableLogOnInfo()
Dim table As Table

' Set the logon information for each table.
For Each table In oRpt.Database.Tables
' Get the TableLogOnInfo object.
logonInfo = table.LogOnInfo
' Set the server or ODBC data source name, database name,
' user ID, and password.
logonInfo.ConnectionInfo.ServerName = "servername"
logonInfo.ConnectionInfo.DatabaseName = "databasename"
logonInfo.ConnectionInfo.UserID = "userid"
logonInfo.ConnectionInfo.Password = "password"
' Apply the connection information to the table.
table.ApplyLogOnInfo(logonInfo)
Next table

CrystalReportViewer1.ReportSource = oRpt

GK

"tg" <tg*******@pop-server.houston.rr.com> wrote in message
news:k0*******************@fe2.texas.rr.com...
My sincere apologies for the crosspost. I posted in one other ng. I am
not sure which is the correct ng for this question.I'm using .NET 2003.
This is the first time I've tried to use Crystal
within .NET. I'm connecting to an Oracle database. I'm using
System.Data.OracleClient, dll v1.1.4322. I can connect to the server
with no problem through the report. I place a Windows
CrystalReportViewer on a form, but when I run the form, I cannot
connect to the server. I am presented with a dialog box asking for
server name, user name, etc., but it gives me a dialog box stating it
cannot log on to server, after I enter the credentials.

I have the connection string set in the OracleConnection, and the
ReportSource is set on the CrystalReportViewer.

Can someone please offer help?

Many thanks
tjguillo


Nov 21 '05 #5

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

Similar topics

0
by: Cuperman | last post by:
Hi All, I am pretty new to Crystal coding and trying to enhance a report that we have created in .Net I have a CrystalReportViewer control which loads a report from Cache memory. This all...
1
by: Jordan | last post by:
Hi, I've declared the statement below in my form and somehow crystalReportViewer1 is always null. Is there anything wrong with the statement? private...
2
by: suicidaltendencies | last post by:
Does anyone know how to fix this problem. I'm trying to create some Crystal Reports Thanks Harol Compilation Error Description: An error occurred during the compilation of a resource required...
3
by: Reza Nabi | last post by:
Hello I created a very simple page just to load a crystal report which was working just great Code started throwing the following exception, after I installed crystal report 9 advanced edition ...
0
by: Marc Callec | last post by:
I'm trying to create an instance of the CrystalReportViewer control within my class in an attempt to return the rendered HTML back to the consumer of the class. Because I haven't added the...
4
by: Stan Sainte-Rose | last post by:
Hi, How to capture the CrystalReportViewer Events. I need to do some actions when the user clicks on the close and print icons. By the way, I thank you for your contributions... Stan
1
by: Bob | last post by:
I'm asking here because I've posted this question in the crystal newsgroup, waited two weeks, and got zero response. I would be very appreciative if someone could shed some light on this problem...
1
by: Gerhard | last post by:
I am using a CrystalReportViewer to view a CrystalReport. The report calls a stored procedure with one parameter. I am using .net version 2. Two questions. How do I set the parameter...
3
by: roopsd | last post by:
I am using VS.NET 2003 with crystal reports XI release 2. I get a runtime error at the following line: oRptForm.crystalReportViewer.ReportSource = oReport An unhandled exception of type...
0
by: roopsd | last post by:
Hi Thank you for yuour help. I am using VS.NET 2003 with Crystal XI r2. I am getting NullReferenceException at the following line in my code. oRptForm.crystalReportViewer.ReportSource =...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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...

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.