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

HOW TO OPEN CRYSTAL REPORT IN VFP 7 1

Status
Not open for further replies.

tics1176

MIS
Oct 14, 2002
6
US
Is there any one who could teach me how to open CRYSTAL REPORT IN VFP 7.0 programatically. I used SQL database in my report and i open it using OLEDB connection. And pls let me know what are things that i need to consider.



Thanks in Advance,
SAC.
 
SAC,

Using CR from within VFP is a big topic, and not something that can be taught in a simple forum message. However, I hope the following will get you started:

loCR = CREATEOBJECT("crystalruntime.application")
loRep = loCR.OpenReport("MyReport.RPT")
loRep.Printout()

The above code will print an existing report. To do anything else, you need to understand the properties and methods of the loCR and loRep objects (amongst others).

The reference that Mike Gagnon gave you is a good place to learn more. Also, read the developers' help file that comes with CR, and check the articles on the Business Objects web site.

Mike


Mike Lewis
Edinburgh, Scotland

My Visual Foxpro web site: My Crystal Reports web site:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top