Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Automate crystal reports in Vfp
Message
From
18/10/2005 13:52:53
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
 
 
To
18/10/2005 13:34:52
General information
Forum:
Visual FoxPro
Category:
Crystal Reports
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01059965
Message ID:
01059979
Views:
9
Try this:
#DEFINE crEDTDiskFile 1
#DEFINE crEFTPortableDocFormat 31
#DEFINE crPortrait 1
#DEFINE crLandscape 2

loCrystal=CreateObject("CrystalRuntime.Application")
loReport=loCrystal.OpenReport("REPORTPATH.rpt",1)

loReport.ExportOptions.DestinationType = crEDTDiskFile loReport.ExportOptions.FormatType = crEFTPortableDocFormat
loReport.ExportOptions.DiskFileName = "OUTPUTFILEPATH.PDF"
loReport.Export(.F.)
Very fitting: http://xkcd.com/386/
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform