PC Review


Reply
Thread Tools Rate Thread

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

 
 
clusardi2k@aol.com
Guest
Posts: n/a
 
      9th Jun 2006
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_DatabaseDataSet)

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

 
Reply With Quote
 
 
 
 
clusardi2k@aol.com
Guest
Posts: n/a
 
      9th Jun 2006

(E-Mail Removed) 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_DatabaseDataSet)
>
> 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.OpenReportByDefault)

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

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems when public a report in CrystalReports y VS 2005 =?Utf-8?B?QW5kcmV3?= Microsoft ASP .NET 0 14th Feb 2007 01:45 PM
With DataDirectory Keyword: CrystalReports.Load, CrystalReports.SetDataSource Yields Password Prompt Which You Can Cancell And Still See Report! How To Stop Prompt clusardi2k@aol.com Microsoft ADO .NET 1 13th Jun 2006 03:21 PM
With DataDirectory Keyword: CrystalReports.Load, CrystalReports.SetDataSource Yields Password Prompt Which You Can Cancell And Still See Report! How To Stop Prompt clusardi2k@aol.com Microsoft Dot NET Framework Forms 1 9th Jun 2006 01:46 PM
CrystalDecisions.CrystalReports.Engine.LoadSaveReportException: Load report failed Farhan Ahmed via .NET 247 Microsoft Dot NET Framework 0 29th Mar 2005 06:51 AM
CrystalReports.Engine: Load report failed Pavan Microsoft VB .NET 0 4th Sep 2003 08:37 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:11 PM.