I am developing an application in Microsoft Foxpro. I would like to use Crystal Reports. Can I access cyrstal reports from Foxpro? If so, can you direct me to the info I need to do the job.
This is no problem. Set up the FoxPro database. It needs to be in standard dbf format. Know where it is.<br>
<br>
Go into Crystal. Set the location of the database. Make certian that you put in the entire path. Then 'verify the database'. All you have to do is click on it.<br>
<br>
Then set up the report.
Thanks for the info. However, what I really would like to know is how to call my crystal reports from a visual foxpro program. I can set the reports up ok. I just need to to be able to run the reports from my program. Thanks
I have a couple of information abou this, but it was hard to find. You can find ifo on the Crystal reports site, but the next code should help you getting started, this is for RDC 8.5 and VFP 6.
This Code can be in you form init event.
Before this you must insert the crystal viewer object to your form, Something very important, you must issue SYS(something) I don't recall but you can search in VFP doc, wich allows ActiveX compatibility.
CRApplication=CreateObject("CrystalRuntime.Application"
CRReport=CReateObject("CrystalRuntime.Report"
CRReport=CRApplication.OpenReport("report.rpt"
With ThisForm
.EnableExportButton=.T.
.EnableNavigationControls=.T.
.ReportSource=CRReport
.ViewReport
EndWith
Hope this helps, Sure needed something like this when I was searching for info on VFP and Crystal reports.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.