Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

calling CR9.0 report

Status
Not open for further replies.

LenaS

Technical User
Nov 28, 2000
98
US
I have been running Crystal reports from VFP6 successfully until I installed CR release 9. Anyone familiar with the VFP code changes related to this upgrade?
This is an example of the sode I have been using, which no longer works.

oCRApp = createobject("crystal.crpe.application")
oRep = oCRApp.openreport("k:\vfp\reinsurance\reports\36pf.rpt")
oRep.Printout(.F.)

 
LenaS

I'm surprised that code still works. Try this instead (and modify it for your setup):
Code:
oCRYSTAL=CREATEOBJECT("Crystal.CrystalReport")
oCRYSTAL.REPORTFILENAME="c:\myCrystalReport.rpt"
oCRYSTAL.WINDOWTITLE="Report Preview" 
oCRYSTAL.DATAFILES(0)="c:\myTable.dbf" &&Format Fox2X
oCRYSTAL.WINDOWSTATE=2
oCRYSTAL.PRINTFILENAME="c:\myFinalReport.rpt
oCRYSTAL.DESTINATION=0
Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top