Voici comment je procede avec un serveur SQL et crystal,
Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared
Imports System.Data
Imports System.Data.SqlClient
Private Sub rapInfoMonth_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim oRPT As New ReportDocument 'Ca provient de CrystalDecisions.CrystalReports.Engine
Dim objConnection As New SqlConnection(ConnString)
Dim objDataAdapter As SqlDataAdapter
Dim objDataSet As New dsInfoCabinetMonth 'Mon DataSet
Dim objDataTable As DataTable
oRPT.Load("c:\rapport\monrapport.rpt")
objConnection.Open()
'Retrieve the data using the SQL statement and existing connection
objDataAdapter = New SqlDataAdapter(SQLString, objConnection)
'Fill the dataset with the data retrieved. The name of the table
'in the dataset must be the same as the table name in the report.
objDataAdapter.Fill(objDataSet, "Nom de la Table")
objConnection.Close()
'Pass the populated dataset to the report
oRPT.SetDataSource(objDataSet)
'Set the viewer to the report object to be previewed.
crInfoCabinetMonth.ReportSource = oRPT
End Sub