cs_beabea
Messages postés62Date d'inscriptionvendredi 10 octobre 2003StatutMembreDernière intervention17 octobre 2008
-
17 juin 2005 à 14:04
cs_Creat
Messages postés76Date d'inscriptiondimanche 25 juillet 2004StatutMembreDernière intervention20 mars 2006
-
17 juin 2005 à 17:24
Bonjour,
avant j'avais l'habitude de faire des Cr sous VB6 mais avec VB. net, je suis un peu perdue
J'ai créé mon dataset fortement typé et ajouter un nouvel élément crystal report. Je l'ai créé avec l'expert. Ensuite, j'ai créé une form et mis un CRviewer mais là je coince, je ne sais pas où mettre mon code et le lequel pour lancer mon report et lié les donnés du dataset;
'Retrieve the data using the SQL statement and existing connection
objDataAdapter =
New OleDbDataAdapter(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, sTable)
objConnection.Close()
'Pass the populated dataset to the report
oRPT.SetDataSource(objDataSet)
'Set the viewer to the report object to be previewed.
crRapport.ReportSource = oRPT