Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Crystal Problem
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Crystal Problem
Divers
Thread ID:
00634233
Message ID:
00634233
Vues:
45
I have this code:

PUBLIC oCr, cCrDatak, oCrTables, oExportOptions

* Create the CR Object
oCr = CREATEOBJECT("CrystalRuntime.Application")

* Open the report
oCrRpt = oCr.OpenReport("Performance.Rpt")

* Set the data location
oCrData = oCrRpt.Database
oCrTables = oCrData.Tables
oCrTables.Item(1).Location = "c:\mtstemp\performance.dbf"

* Set the export options
oExportOptions = oCrRpt.ExportOptions
oExportOptions.DestinationType = 5 && Application
oExportOptions.FormatType = 21 && crEFTExcel50

* Export the file
oCrRpt.DiscardSavedData()
oCrRpt.Export(.F.)

RETURN


When it hits the oCrRpt.Export(.F.) line, it errors with "Invalid Direcotry"

The folders are there, as are all the files.

Thanks
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform