CrystalReport en VB.net avec MySQL
achrefghanmi
Messages postés
8
Statut
Membre
-
achrefghanmi Messages postés 8 Statut Membre -
achrefghanmi Messages postés 8 Statut Membre -
Bonjour,
j'ai essaye ce code la pour afficher les informations de mon base de donné ,mais il ne marche pas. SVP aidez moi le plus tautx possible pour resoudre ce probleme car mon Projet de Fin d'Etude et coince a ce point .Merci
j'ai essaye ce code la pour afficher les informations de mon base de donné ,mais il ne marche pas. SVP aidez moi le plus tautx possible pour resoudre ce probleme car mon Projet de Fin d'Etude et coince a ce point .Merci
Imports MySql.Data.MySqlClient
Public Class Form1
Dim oConn As MySqlConnection = New MySqlConnection()
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim oRpt As CrystalReport1
oRpt = New CrystalReport1
oConn.ConnectionString = "server=localhost;user id=root;password=achref;database=mabase"
Dim myData As New DataSet
Dim myCommand As New MySqlCommand
Dim MyAdapt As New MySqlDataAdapter
Dim myDataTable As New DataTable
Dim strQuery As String
Dim DataSet As DataSet1
strQuery = "select * from test"
myCommand.Connection = oConn
myCommand.CommandText = strQuery
MyAdapt.SelectCommand = myCommand
MyAdapt.Fill(myDataTable)
oRpt.SetDataSource(DataSet)
CrystalReportViewer1.ReportSource = oRpt
End Sub
End ClassConfiguration: Windows 7 Safari 532.5
A voir également:
- CrystalReport en VB.net avec MySQL
- Mysql community download - Télécharger - Bases de données
- Mysql 1045 - Forum Windows
- Could not connect to mysql! please check your database settings! - Forum Redhat
- Galère à n'en plus finir avec l'accès à mysql ✓ - Forum Linux / Unix
- Mysql a répondu : documentation connexion impossible : paramètres incorrects. - Forum Bases de données