Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OLE errors using Crystal Reports 7.0 with VFP 5.0
Message
From
10/03/1999 12:56:37
 
 
To
10/03/1999 12:50:17
Sharon Holliday
Computer Software Innovations
Easley, South Carolina, United States
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00195905
Message ID:
00195957
Views:
23
I have this code in a VCX that allows the user to select the destination for the report. .oCrystal and .oReport are custom properties of the VCX.

.oCrystal = CreateObject("Crystal.CRPE.Application")
.oReport = .oCrystal.OpenReport(<>)

if !empty(.cSelectFormula)
.oReport.RecordSelectionFormula = .cSelectFormula
endif

Do Case
Case .optDestination.Value = 2 && preview
.oReport.Preview
Case .optDestination.Value = 1 && current printer
.oReport.PrintOut(.f.)
EndCase

>I don't really understand the automation server. Can you tell me the major differences between it and the OCX?
Thanks,
Dan Jurden
djurden@outlook.com
Previous
Reply
Map
View

Click here to load this message in the networking platform