Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLE errors using Crystal Reports 7.0 with VFP 5.0
Message
De
10/03/1999 12:56:37
 
 
À
10/03/1999 12:50:17
Sharon Holliday
Computer Software Innovations
Easley, Caroline du Sud, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00195905
Message ID:
00195957
Vues:
25
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform