Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Crystal Problem
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Crystal Problem
Miscellaneous
Thread ID:
00634233
Message ID:
00634233
Views:
46
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
Next
Reply
Map
View

Click here to load this message in the networking platform