Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Crystal Reports and VFPOLEDB
Message
De
06/02/2002 12:48:41
 
 
À
06/02/2002 11:27:55
Pamela DeMerchant
Eagle Global Logistics, Inc.
Houston, Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00616103
Message ID:
00616165
Vues:
25
>Hi All,
>
>My application uses Crystal Reports 8.5 RDC displaying the report in a VFP 7 form. I have converted the .rpt to use the new OLE DB VFP driver instead of an ODBC DSN, but have not yet successfully been able to set the data to use the new driver programmatically. Any help would be appreciated from someone who's been there.
>
>Thanks,
>
>Pam
>
>
>goCrxRp = Createobject("CrystalRuntime.Application")
>goRp = goCrxRp.OpenReport(c:\TestCrystal\Reports\Test.rpt)
>oConn = CREATEOBJECT("ADODB.Connection")
>oConn.Open("Provider=vfpoledb.1;Data Source=c:\TestCrystal\data")
>oRS = CREATEOBJECT("ADODB.Recordset")
>lcTestData = "Select * from Test"
>oRS = oConn.Execute(lcTestData)
>goRp.Database.SetDataSource(oRS)

Is there an error message?

Maybe if you set oConn.CursorLocation = 3 && adUseClient. (depends on what CR requires)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform