Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Crystal Reports Automation Server ODBC error
Message
De
27/09/1999 11:03:23
Ken Zinssar
Newkirk Products Inc
Albany, New York, États-Unis
 
 
À
24/09/1999 11:59:44
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00268509
Message ID:
00269364
Vues:
18
The following code works perfectly to refresh the data & preview my report, in Vbasic...

Dim CrystalApplication As CRPEAuto.Application
Dim CrystalReport As CRPEAuto.Report

Private Sub Form_Load()
Set CrystalApplication = CreateObject("Crystal.CRPE.Application")
Set CrystalReport = CrystalApplication.OpenReport("C:\Program Files\Seagate Software\Crystal Reports\A.rpt")

Private Sub CmdPrintReport_Click()
Call CrystalReport.DiscardSavedData
Call CrystalReport.Database.Verify
CrystalReport.Preview
End Sub

!!!THE EQUIVALENT FOX CODE listed below DOES NOT!!! WHY!??!

LCrwApp=Createobject('Crystal.CRPE.Application')
LCrwRep=LCrwApp.OpenReport("C:\Program Files\Seagate Software\Crystal Reports\A.rpt")
LCrwRep.DiscardSavedData
LcrwRep.Database.verify
LcrwRep.Preview

ARE WHY WE GOING TO ADMIT TO ANY SUPERIORITY IN VB?!!!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform