Results 1 to 2 of 2

Thread: Crystal Report Connection

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2006
    Location
    /root/usr/local/bin
    Posts
    476

    Crystal Report Connection

    hello!

    Code:
     Database crDatabase = cChart_Thickness_DS.Database;
                        Tables crTables = crDatabase.Tables;
    
                        ConnectionInfo crConnInfo = new ConnectionInfo();
    
                        crConnInfo.ServerName = "ip address\\SQLEXPRESS";
                        crConnInfo.DatabaseName = "table";
                        crConnInfo.UserID = "user";
                        crConnInfo.Password = "password";
    
                        //Loop through each table and set the connection info
                        //Pass the connection info to the logoninfo object then apply the
                        //logoninfo to the main report
                        foreach (Table crTable in crTables)
                        {
                            TableLogOnInfo crLogOnInfo = crTable.LogOnInfo;
                            crLogOnInfo.ConnectionInfo = crConnInfo;
                            crTable.ApplyLogOnInfo(crLogOnInfo);
                        }
    i am using above in the server connection to the crystal report and SQL express is good, but when i run it on the client it shows up the enter for password in the crytal report and when i enter password it always failed.
    considering my password is correct.
    what's wrong with this my problem is on the client side, is there any way to solve this?

    tnx much.
    *****************
    VB6,PHP,VS 2005

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Crystal Report Connection

    I would check to ensure you are in fact, getting a good solid connection.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width