Logon Failed For Crystal Reports 
Author Message
 Logon Failed For Crystal Reports

I'm wondering if anyone else has had this problem.

When I run a Crystal Report and connect through ODBC to SQL Server 2000 on
my development machine I do not have a problem.  I also dont have a problem
when I installed it on a few other machines.

Yet there are others that prompt for the database login and pw when the
report loads.  When I type it in it says "Logon Failed" and will do this
over and over again.

Some guy at Seagate told me to pass the logon info when it loads...  Ok so I
did that using the code below, it was no help.  Anyone else have a different
take on this?  This is all in C#....

private void SetConnectionInfo (string table, string server, string
database, string user, string password)
{
// Get the ConnectionInfo Object.
TableLogOnInfo logOnInfo = new TableLogOnInfo();
logOnInfo = crReportDocument.Database.Tables[table].LogOnInfo;
ConnectionInfo connectionInfo = new ConnectionInfo ();
connectionInfo = logOnInfo.ConnectionInfo;
// Set the Connection parameters.
connectionInfo.DatabaseName = database;
connectionInfo.ServerName = server;
connectionInfo.Password = password;
connectionInfo.UserID = user;
crReportDocument.Database.Tables [table].ApplyLogOnInfo(logOnInfo);

Quote:
}



Wed, 27 Jul 2005 06:27:10 GMT  
 Logon Failed For Crystal Reports
NO solution, but the same problem.

In my case it is actually between 2 different users against the same DB.

I suspect it has to do with the DSN of a subreport, but I'm not sure.
Perhaps the logon info does not propogate to a sub-report?  The report
document only lists a single table although I know at least one subreport is
different.

I cirumvented it by rewriting the report to go aginst a dataset.  Much
quicker since my applicationa ctually prints about 15,000 reports off the
same set of data.  Query once (which now runs a few minutes), and then never
again (reports generate for a few hours after that).


Quote:
> I'm wondering if anyone else has had this problem.

> When I run a crystal report and connect through ODBC to SQL Server 2000 on
> my development machine I do not have a problem.  I also dont have a
problem
> when I installed it on a few other machines.

> Yet there are others that prompt for the database login and pw when the
> report loads.  When I type it in it says "Logon Failed" and will do this
> over and over again.

> Some guy at Seagate told me to pass the logon info when it loads...  Ok so
I
> did that using the code below, it was no help.  Anyone else have a
different
> take on this?  This is all in C#....

> private void SetConnectionInfo (string table, string server, string
> database, string user, string password)
> {
> // Get the ConnectionInfo Object.
> TableLogOnInfo logOnInfo = new TableLogOnInfo();
> logOnInfo = crReportDocument.Database.Tables[table].LogOnInfo;
> ConnectionInfo connectionInfo = new ConnectionInfo ();
> connectionInfo = logOnInfo.ConnectionInfo;
> // Set the Connection parameters.
> connectionInfo.DatabaseName = database;
> connectionInfo.ServerName = server;
> connectionInfo.Password = password;
> connectionInfo.UserID = user;
> crReportDocument.Database.Tables [table].ApplyLogOnInfo(logOnInfo);
> }



Fri, 29 Jul 2005 10:13:06 GMT  
 Logon Failed For Crystal Reports

Quote:

>NO solution, but the same problem.

What version of Crystal are you using?  I think 9 had a bug about this
not sure.  I know my reports worked fine in 8 and I tried a couple in
9 and i got this same problem.  I went back to 8!

Not sure that helps but maybe give U a place to look?

Mythica

*under her rock*

(Using VB.Net, Win2000 Server and SQL2000, XP Pro, & Crystal v8)



Sat, 30 Jul 2005 20:01:18 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. HELP PLEASE "Error5-Logon Failed"-Crystal Report-HELP!!!!!

2. Desperately Need HELP!!!!-Crystal Report-Logon Fail - Can anyone even give me a lead

3. Help-"Error5-Logon Failed"-HELP PLease!!!!!!-Crystal Report

4. Logon Failed.. Crystal Reports.Net Error (Code Included)

5. Logon Failed when exportign crystal report to PDF (or any other format)

6. Crystal Report in .NET - Logon Failed Error while Exporting

7. Logon failed. Crystal Reports .NET

8. FYI - Logon Failed in Crystal.Net having Subreports (Working Code Supplied)

9. Crystal and .NET: Logon failed

10. .Net Crystal Viewer Logon Failed

11. dot net logon failed in sub reports

12. Crystal Reports "Load report failed"

 

 
Powered by phpBB® Forum Software