Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing data location in Version 9.0
Message
De
14/03/2003 15:04:39
Tim Yoder
Pin Point Computer Systems, Inc.
Bedford Heights, Ohio, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Crystal Reports
Titre:
Changing data location in Version 9.0
Divers
Thread ID:
00766001
Message ID:
00766001
Vues:
56
Is anybody using Crystal Reports version 9.0 and changing the data location through a VFP program? I posted a message before, and it seems as if version 8.5 is working different than version 9.0

If you have used it with version 9.0 and it works, please let me know what you did. Here is the code that I have been told works in 8.5

LOCAL oCR as CRAXDRT.Application
LOCAL oRpt as CRAXDRT.Report
LOCAL oDB as CRAXDRT.Database
LOCAL ocDBT as CRAXDRT.DatabaseTables
LOCAL oDBT as CRAXDRT.DatabaseTable

oCR = CREATEOBJECT("CrystalRuntime.application")
oRpt = oCr.OpenReport("C:\Cradv90\Docs\status.rpt")

* Create the database object
oDB = oRpt.Database()

* Get a reference to the DatabaseTable Collection
ocDBT = oDB.Tables()

* Get a reference to the Database Table object from table 1
oDBT = ocDBT.Item(1)

* Set the location
oDBT.Location = "c:\data\status.dbf" &&Change location

oRpt.PrintOut()
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform