Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Assigning ADO recordset to Crystal Reports
Message
De
25/07/2001 03:35:07
Peter Walburn
Omega Data Services Ltd
Aberdeen, Royaume Uni
 
Information générale
Forum:
Visual Basic
Catégorie:
Produits tierce partie
Divers
Thread ID:
00534359
Message ID:
00534830
Vues:
11
>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.

Thanks,

I'll try this out. (I think I did something similar before but was getting errors at the rptTables.Item(1) part)

Pete
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform