Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can you preview Crystal report in VFP form ?
Message
De
19/12/2001 04:55:44
Fausto Garcia
Independent Developer
Lima, Pérou
 
 
À
19/12/2001 00:18:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00595976
Message ID:
00596006
Vues:
24
Hi Rajesh,

Try using the Crystal OCX control and send its output to a window:
...
loCR = CREATEOBJECT('Crystal.crystalreport')
loCR.DESTINATION = 0  && Controls output: 0 preview window; 1 printer
loCR.WINDOWSTATE = 2  && Maximize preview window
loCR.COPIESTOPRINTER = 1
lnResult = loCR.PRINTREPORT  && Trigger the report
IF lnResult = 0 THEN
   && Means the report printed out well
ELSE
   && There was trouble ...
ENDIF
RELEASE loCR
...
Note that the OCX we are using here is CRYSTL32.OCX, you need to have it registered in order to get it working.

Hope his helps!
Solo se que nada se

Fausto J. Garcia Pino - MCSD.NET
.NET, Oracle, Tronador & Fondismo!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform