Correction. After looking at the error message again, it says,
"This OCX must be hosted in Visual FoxPro"
I don't know if that makes it any clearer or not. ;-)
Thanks,
Randy
>Greetings All,
>
>Have an application where I'm using Crystal Reports 8.5 RDC. Have run into the following error when running the EXE from outside the VFP8 environment (in both VFP8 pre and post SP1) under Windows XP Pro, SP1a:
>
>"This OCX only runs in Visual FoxPro"
>
>This error does not occur when the EXE is run within VFP8 (i.e. DO sample.exe). Also, this error does not occur when running the external EXE under Windows 2000.
>
>When compiling an EXE under VFP7, the error does not occur when running the external EXE in XP Pro. It only occurs in VFP8.
>
>Since the error only occurs when running outside of VFP8, it is hard to isolate exactly where the error is occuring. I have placed WAIT WINDOW calls at various points in the code in attempt to determine if it error was occuring during instantiation of RDC or during preview process. From what I can determine, the error does not seem to occur during the instanitation of the RDC or preview control objects, but occurs later.
>
>Any ideas would be greatly apprecicated.
>
>TIA,
>
>Randy McAtee
Randy McAtee