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 Class
A voir également:
- CrystalReport en VB.net avec MySQL
- Mysql community server - Télécharger - Bases de données
- Vb.net express - Télécharger - Langages
- Could not connect to mysql! please check your database settings! - Forum Redhat
- Vb.net mysql ✓ - Forum Framework .NET
- Mysql error 1 ✓ - Forum Réseaux sociaux