Hi Jim,
At first sight, everything should be working fine. Did you think of the following points ?
1. You might try a CRReport.Database.Verify() after the openreport method.
2. sys(233,1) should be sys(2333,1)
3. Does it correctly preview in the Crystal Report designer ?
4. Did you use ODBC or FOX 2.x table to report form? FOX 2.x are preffered.
5. On which line does it occur ?
6. What is the error code ?
Walter,
>Help Please,
>
>I'm trying to get my first CR report to print out of a vfp6.0 form
>
>***this line is in the load event of my vfp6.0 form.
>sys(233,1)
>
>***this code is in the click of the command button.
>public CRApplication
>public CRReport
>CRApplication = createobject("crystalruntime.application")
>CRReport = createobject("crystalruntime.report")
>
>CRReport = CRApplication.openreport("c:\foxdat\locationcdrive.rpt")
>ThisForm.Olecontrol1.reportsource = CRReport
>ThisForm.Olecontrol1.viewreport
>***end of code
>
>
>When the CR opens I keep getting this message "Server has not yet been opened"?
>
>I added code in the load event to use the table and it still didn't work and all the necessary .dll's are already in my system32 folder.
>
>This report was created on my developement pc, windows 2000.
>
>Any ideas would be appreciated.
>
>Thanks,
>
>Jim Harvey
>
jharvey@netrax.net