cs_math85
Messages postés58Date d'inscriptionlundi 7 janvier 2002StatutMembreDernière intervention26 janvier 2005
-
24 mars 2004 à 14:16
cs_math85
Messages postés58Date d'inscriptionlundi 7 janvier 2002StatutMembreDernière intervention26 janvier 2005
-
25 mars 2004 à 15:22
je suis en train dessayer d'imprimer une requete sql d'une base access97 avec crystal report 4.6 livré avec vb6 et sous vb6.
quelqu'un peut il m'aider ou me donner un exemple d'un code qui se connecte à une base access et qui fait un select pour l imprimer par un crystal report?
merci
ps: c'est la version 4.6, est ce que les autres sont payantes?
cs_math85
Messages postés58Date d'inscriptionlundi 7 janvier 2002StatutMembreDernière intervention26 janvier 2005 24 mars 2004 à 14:59
j'ai fais comme dans la doc:
1. Add the following controls to your Visual Basic Form:
Data Control
Crystal ActiveX control
Command Button
2. On the Data Control:
Set the DatabaseName property to the name of the database being reported on.
Set the RecordSource property (this can be a database table or a SQL query statement).
3. On the Crystal ActiveX control:
Set the DataSource property to the Data Control (for example: Data1).
Set the ReportSource to 3 - All Data Control Fields.
4. On the Command Button, add the following code for the Click event:
Private Sub Command1_Click()
CrystalReport1.Action = 1
End Sub
mais ca marche pas: report not found
pourtant d apres ce type de données, il ne faut pas de report?
sir?