crystal reports

i know that crystal reports are compatible with vfp.how can i run a crystal report from inside vfp?
[99 byte] By [BILLARAS] at [2007-12-17]
# 1
#define WS_MAXIMIZE 29949952
oCrystal=CreateObject("Crystal.CRPE.Application")
oRpt = oCrystal.OpenReport("c:\myReports\myReport.RPT")
oRpt.preview("Report Preview Title",,,,,WS_MAXIMIZE,0)

PS: Code is from VFP5-6 days. Since then I don't use Crsytal and things might have changed.

CetinBasoz at 2007-9-8 > top of Msdn Tech,Visual FoxPro,Visual FoxPro General...
# 2
There are several Crystal Reports articles on my web site that should get you started. www.craigberntson.com
CraigBerntson at 2007-9-8 > top of Msdn Tech,Visual FoxPro,Visual FoxPro General...