Results 1 to 2 of 2

Thread: Crystal Reports with two servers

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 1999
    Location
    Rock Island
    Posts
    21

    Post

    I am using the crystal reports control and have this code. But I cannot seem to get connected to the other server. Anyone got any ideas?

    Private Sub cmdSQL1_Click()

    With Crystal
    .Reset
    .WindowState = crptMaximized
    .ReportSource = crptReport
    .ReportFileName = "C:\windows\desktop\report1.rpt"
    .LogOnServer "p2ssql.dll", "rna_sql_1", "lptables", "rnasa", "rnasa"
    .Connect = "DRIVER=SQL Server;SERVER=RNA_SQL_1;UID=userID;PWD=Password;WSID=TESTWEB;DATABASE=lptables"
    .WindowTitle = "Test Connection"
    .Action = 1
    End With

    End Sub

    Private Sub cmdSQL2_Click()

    With Crystal
    .Reset
    .WindowState = crptMaximized
    .ReportFileName = "C:\windows\desktop\report1.rpt"
    .WindowTitle = "Test Connection"
    .Connect = "DRIVER=SQL Server;SERVER=RNA_SQL_2;UID=userID;PWD=Password;WSID=TESTWEB;DATABASE=lptables"
    .Action = 1
    End With

    End Sub

  2. #2
    Lively Member
    Join Date
    Jan 2000
    Location
    Springfield, IL
    Posts
    124

    Post

    I have problems with Crystal Reports and connecting to SQL Server also. I ended up finding some settings in the report itself that fixed the problem. You might want to take a look at the report. Sorry I am not very specific I am too familiar with crystal reports I just had the job of debugging the problem.

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