bonjour,
je suis en train de développer une application avec vb.net et sql server.lorsque j'utilise cystal report pour imprimer mon état de sortie une erreur s'affiche comme suit:crystal report ne contient aucune table.
merci .
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click pp.vcommand.Connection = pp.vconnexion pp.ConnexionGestionLabo() pp.vcommand.CommandText = "Select * From consomable" pp.vreader = pp.vcommand.ExecuteReader() pp.vreader.Close() Dim cryRpt As New ReportDocument cryRpt.Load(AppDomain.CurrentDomain.BaseDirectory + "Imprimer\Consomable.rpt") cryRpt.SetDataSource("consomable") CrystalReportViewer1.ShowRefreshButton = False CrystalReportViewer1.ShowCloseButton = False CrystalReportViewer1.ShowGroupTreeButton = False CrystalReportViewer1.ReportSource = cryRpt End Sub
Partager