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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crystal from VFP

Status
Not open for further replies.

DanNorris2000

Technical User
Nov 10, 2000
186
0
0
US
Please do not point me to the Craig Bernston article. It offers nothing to me.

Crystal 8.5
VFP 6.0
Error: OLE IDispatch exception code 20599 from CPEAUT32: Cannot open SQL server.


Just trying to call a Crystal report with parameters from within a VFP program from a command button in VFP.
using the following code:
oCRAPP = createobject("crystal.crpe.application")
oRep = oCRAPP.openreport("k:\vfp\reinsurance\reports\35pf.rpt")
oRep.printout(.f.)

The problem is that this work on some reports and not others
 
Hi DanNorris2000,

Creating the report object this way is the old way, since you have 8.5 you could use the RDC.
oCRAPP = createobject("crystal.crpe.application")

Here is an FAQ on the subject...
faq184-3039
John

[pc] Everything I needed to know I learned from Yoda.
 
That particular FAQ refers to VFP 7.0. Will it work with 6.0?
 
Dan,
While I'm no CR expert, I can say that there doesn't appear to be ANY VFP 7.0 specific code in that FAQ - it should work in VFP 6.0 (at least SP 3->).

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top