Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Assigning ADO recordset to Crystal Reports
Message
De
25/07/2001 23:27:04
 
Information générale
Forum:
Visual Basic
Catégorie:
Produits tierce partie
Divers
Thread ID:
00534359
Message ID:
00535510
Vues:
16
>>Hello,
>>
>>I am creating and populating an ADO recordset in code and I would then like to poulate a Crystal Report with this recordset. Is there an easy way to do this? I am not using the Data Envirnoment for creating the recordset.
>
>I use CR 7.0 and use this syntax to pass a ADO recordset to it:
>
>
        'Open report
>        Set objCR = CreateObject("Crystal.CRPE.Application")
>        Set gReport = objCR.OpenReport(gReportPath & "rptStockGain.rpt")
>
>        Set rptDB = gReport.Database
>        Set rptTables = rptDB.Tables
>        Set rptTable = rptTables.Item(1)
>        rptTable.SetPrivateData 3, rstReport
>
>        Set rptTable = rptTables.Item(2)
>        rptTable.SetPrivateData 3, rstHeader
>
>In which rstReport is my detail and rstHeader is my header fields.

How are you populating the fields on the report?
System Analyst
Nabil B. Ghrayyeb
nabilg@hotmail.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform