Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Has anyone used the Crystal ActiveX control?
Message
 
To
24/11/1999 12:29:24
Walter Meester
HoogkarspelNetherlands
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00294707
Message ID:
00295127
Views:
59
>>Dan -
>>
>>I've been reading through the Crystal Reports Developers Help, and have come to the conclusion that the Automation Server is what I had tried to use in the first place. (See down below in the original message for this thread).
>>The following hook:
>>ReportApp = CreateObject("Crystal.CRPE.Application")
>>works fine on my development machine, but when I try to run a report using this method on another computer, I get the following error:
>>"Class definition CRYSTAL.CRPE.APPLICATION is not found"
>>
>>I have added all of the dependency .DLL's listed in the Seagate help. Crystal Reports is geared towards VB, so in the help section where it explains how to incorporate the Automation Server into your project, it walks you through how to do it in VB. Doesn't help much for us VFP'ers.
>>
>>Do you have any other suggestions?
>
>Go to the system directory and enter:
>
>regsvr32 crpe32.dll
>regsvr32 cpeaut32.dll
>
>Walter,

Thanks for your response Walter!

Here are the results of your suggestion:

1.)
"regsvr32 crpe32.dll " resulted in the following error message:
"CRPE32.DLL was loaded, but the DllRegisterServer entry point was not found.

DllRegisterServer may not be exported, or a corrupt version of CRPE32.DLL may be in memory. Consider using PView to detect and remove it."

Aha! I'm getting somewhere! Unfortunately, I don't know what PView is, or what the error message meant other than CRPE32.DLL isn't correctly installed. Can someone shed a bit more light on this?

2.)
"regsvr32 crpaut32.dll" resulted in a message saying that it was successful.
So I opened up the application and tried to run a report using the Automation Server code. I didn't get the "Class definition CRYSTAL.CRPE.APPLICATION is not found" error, so we are making progress! However, it still isn't working (due to some more missing files I believe..) I got the following errors this time:

"Crystal Reports Database Error: Physical database not found.
Error Opening File.
File could not be opened: 'resbatch1', at file location: 'c:\vfp_eis\data\resbatch.dbf'"

** 'resbatch1' is the alias used in the Crystal Report to reference the DB
** the file listed in the error message: 'c:\vfp_eis\data\resbatch.dbf', did actually exist, so it was there, it just couldn't be read.

Imediately following that error message, FoxPro displayed:

"Program Error
OLE IDispatch exception code 20532 from CPEAUT32: Cannot find database DLL..."

I would assume I need an additional DLL (depending on the database type my Crystal Report is reading data from). I think there was a section on this in the Seagate Help files, but I don't remember seeing a driver for the FoxPro dbf's...

I would be extremely gratefull for any more help solving this little problem!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform