Kevin:
The activex control must be registered in VFP.. To do that,
To register the runtime component --- in VFP
Select Tools - Intellisense Manager
Click the types tab
Make sure that COM servers is displayed in the drop down on the right..
scroll to Crystal Reports 9 ActiveX Designer Runtime Library
Click DONE to close the type library references dialog
Click OK to close the intellisense manager
In the command window you can type:
oCRW = CREATEOBJECT("CrystalRunTime.Application")
Then if you type oCR.
When you press the . Intellisense will kick in and show you the properties & methods..
You might as well registrer the CR Viewer control while you are at it. This time, go to the tools | Options menu from the VFP tool bar.
select the Controls tab, then select ActiveX controls from the pulldown.
Select the Crystal Reports Viewer control 9 from the list. Make sure you click on Set as default otherwise VFP may forget the setting.
Click ok to close the options dialog.
Now you can create a new class based on CR Viewer etc...
As a final - Get CrysDev: A developers guide to integrating Crystal Reports, by Craig Bernston, it is a life saver.. you can get it from
www.hentzenwerke.com.
Hope this helps
Haydn