Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can you preview Crystal report in VFP form ?
Message
From
19/12/2001 04:55:44
Fausto Garcia
Independent Developer
Lima, Peru
 
 
To
19/12/2001 00:18:37
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00595976
Message ID:
00596006
Views:
22
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!
Previous
Reply
Map
View

Click here to load this message in the networking platform