469,592 Members | 1,784 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,592 developers. It's quick & easy.

Logon Fails for the crystal reports which are using command object

hi all,

I have created some independent reports through crystal reports developer edition v 10 and developed a small tool in .net framework v 1.1 to view these reports through the crystal reports viewer provided by .net.

This is a stand-alone windows application and nothing to do with the server. I am using local SQL anywhere database and connection is via an ODBC DSN.

Before launching the reports I am passing the login information to the reports. The code for the login information is as follows:

TableLogOnInfo crystalTableLogin;

foreach(Table crTable in currentReport.Database.Tables)
{
crystalTableLogin = crTable.LogOnInfo;
crystalTableLogin.ConnectionInfo.ServerName = "XXX"; crystalTableLogin.ConnectionInfo.UserID= "XXX";
crystalTableLogin.ConnectionInfo.Password = "XXX"
crTable.ApplyLogOnInfo(crystalTableLogin);
}

The code works fine for all reports using Tables but not for reports using Command objects. It throws an exception stating Logon failed.

Any ideas how to resolve the issue.

Thanks in advance.

Mukesh
Jul 21 '05 #1
0 1241

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Ambika Srinivasan | last post: by
4 posts views Thread by Rey | last post: by
7 posts views Thread by p | last post: by
2 posts views Thread by Karun Karunakaran | last post: by
1 post views Thread by andy lim | last post: by
3 posts views Thread by Milan Todorovic | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.