Results 1 to 2 of 2

Thread: How to make VB and crystal report data connectivity

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2006
    Location
    India
    Posts
    1

    How to make VB and crystal report data connectivity

    How to make VB and crystal report data connectivity and also how to display database information to crystal report viewer

  2. #2
    New Member
    Join Date
    Sep 2006
    Posts
    4

    Re: How to make VB and crystal report data connectivity

    What version of VB are you using? VB 6.0, VB.Net?
    What database are you using?

    I used something like this with VB.Net
    Method 1)
    For i = 1 To Report.Database.Tables.Count
    Report.Database.Tables(i).SetLogOnInfo(gDB_Server, gDB_Server, gDB_ID, gDB_Password)

    Next i

    Method 2)
    Dim crpTable As CRAXDDRT.DatabaseTable
    For Each crpTable In Report.Database.Tables
    Dim cp As CRAXDDRT.ConnectionProperties
    cp = crpTable.ConnectionProperties

    With cp
    .Item("DSN").Value = gDB_Server
    .Item("User ID").Value = gDB_ID
    .Item("Password").Value = gDB_Password
    End With
    Next crpTable

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