473,508 Members | 2,214 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

With DataDirectory Keyword: CrystalReports.Load, CrystalReports.SetDataSource Yields Password Prompt Which You Can Cancell And Still See Report! How To Stop Prompt

Hello, the step that I did to get to my current question are:

I began to use the keyword DataDirectory and the next line of code.
When I ran the application, I would be asked for a Login ID and
password. If I clicked the cancell button on that Login window I would
not see the report at all.

CrystalReport1.Load(Application.StartupPath &
"\..\..\CrystalReport1.rpt")

So, I eventually tried the following 2 line code sequece. This time
if I pressed the cancell button on the Login window it would show the
report.

CrystalReport1.Load(Application.StartupPath &
"\..\..\CrystalReport1.rpt")
CrystalReport1.SetDataSource(Employee_DatabaseData Set)

Question: The last 2 lines of code will display the report and I'm
pleased with that. But, how can I stop the Login prompt? I want to just
open the report without being asked for Login ID or password.

Trying to finish-up a project,
Christopher Lusardi

Jun 9 '06 #1
1 1965

cl********@aol.com wrote:
Hello, the step that I did to get to my current question are:

I began to use the keyword DataDirectory and the next line of code.
When I ran the application, I would be asked for a Login ID and
password. If I clicked the cancell button on that Login window I would
not see the report at all.

CrystalReport1.Load(Application.StartupPath &
"\..\..\CrystalReport1.rpt")

So, I eventually tried the following 2 line code sequece. This time
if I pressed the cancell button on the Login window it would show the
report.

CrystalReport1.Load(Application.StartupPath &
"\..\..\CrystalReport1.rpt")
CrystalReport1.SetDataSource(Employee_DatabaseData Set)

Question: The last 2 lines of code will display the report and I'm
pleased with that. But, how can I stop the Login prompt? I want to just
open the report without being asked for Login ID or password.

Trying to finish-up a project,
Christopher Lusardi


If I change the Load to any of the next two lines nothing happens
differently from the just using the two lines above.

CrystalReport1.Load(Application.StartupPath &
"\..\..\CrystalReport1.rpt",
CrystalDecisions.Shared.OpenReportMethod.OpenRepor tByDefault)

CrystalReport1.Load(Application.StartupPath &
"\..\..\CrystalReport1.rpt",
CrystalDecisions.Shared.OpenReportMethod.OpenRepor tByTempCopy)

Jun 9 '06 #2

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

Similar topics

1
1660
by: Tim Jones | last post by:
Hey all, I am trying to try get a crytal report running properly. A "Hello World" report that does not add criteria to the record selection formula of the report (either in the development tool,...
3
2794
by: Russ | last post by:
I have a page that uses crystal reports to generate reports from a SQl server database. As of a week ago everything was working fine, but now I am all of the sudden getting errors. To the best of...
3
3777
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...
3
2421
by: Adriano | last post by:
Hello, when I try to print something, either DataGrid or from Crystal Report viever the folowing error message appears and cancels printing: Object reference not set to an instance of an...
1
3537
by: Hardy Wang | last post by:
Hi all, I have a piece of code in my C# console application to export from crystal report files to PDF. For some reports files, I get errors below. I have Crystal Reports 8.5 with service pack...
0
1423
by: Jay | last post by:
Following the help documentation, I can only get the report.Load method to work if I type in the full path. By toggling the commented line below, it proves that the report will open only when the...
0
1620
by: bonita | last post by:
I come across the error "CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed." After I move my asp.net code from the development platform (XP professional) to the production web...
3
1783
by: dekern | last post by:
Good afternoon all, I guess I am missing the benefit of using datasets with Crystal. For years I have written wrapper apps that used the Pull method and I let Crystal do all the sql work. Now...
0
1765
by: bhappy | last post by:
Hai All, Im genarating a report using crystal reports, i have one crystal report page name "cr_salary.rpt" when im accessing this page i got an error load report failed.. vb.net code: Dim...
0
1081
by: Vajrala Narendra | last post by:
Hi Experts, In my VisulaStudio2008 c#.net windows Apllication i have a crystalReport(Main) it have 5 subreports. i did this report in my local machine so i gave datasource, database name and...
0
7231
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
7132
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
7336
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,...
0
7504
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
5640
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
4720
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...
0
3211
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...
0
3196
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
432
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...

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.