Information générale
Catégorie:
Crystal Reports
Titre:
Changing data location in Version 9.0
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement