Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ADO & VFP
Message
De
02/11/1998 10:36:43
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
00152144
Message ID:
00153521
Vues:
21
John

Thanks for the advice about Crystal and ADO. I've been trying to get Crystal to pick up my record set through a Crystal definition file (TTX). I'm not far off but when I print the report all I get is the report headers and not the report detail. The total record count for the report is the correct number of records, but when these are exported to a text file, the result is the report header duplicated for the number of records in the table.

The commands I'm using to set the whole thing up are:

oConn = CreateObject("adodb.connection")
oRS = CreateObject("adodb.recordset")
oConn.Open("DSS")
oRs.CursorLocation = 3
oRs.Open("Area",oconn,3,1,2)
oCrystal = CreateObject("Crystal.CRPE.Application")
oReport = oCrystal.OpenReport("c:\datanew\area.rpt")
oReportDB = oReport.Database
oReportTables = oReportDb.Tables
oReportTable = oReportTables.Item(1)
oReportTable.SetPrivateData(3,ors)
oReport.Preview

Have you any pointers how I might get this working?

Thanks

Anthony
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform