Click to See Complete Forum and Search --> : Distributing Crystal Report Engine & ActiveX Control


December 30th, 1999, 03:28 AM
Hi
I've written a small application (in VB 5 Enterprise Edition) that uses crystal report for report generation. I just compile my project into EXE (Native Code), WITHOUT using application setup wizard. All the necessary DLLs and OCXs are put together with the Executable file in a folder. I can run my executable file on other PCs that don't have pre-installed VB5, the only problem is I CAN'T run the part that uses Crystal Report ActiveX. A message like "Component Crystl32.ocx Not Correctly Registered: File Is Missing Or Invalid" appears, and then the program suddenly quits.

In fact, I also packed the Crystl32.ocx and Crpe32.dll (Engine) in the same folder , and then I made another copy of these files into the windows\system\ directory, the message still appears. As I read thru the documentation, there's no need to include Crystl32.ocx but Crpe32.dll in a compiled and distributable program. I don't know why there's a message prompting me that Crystl32.ocx is not registered correctly. In this case, should I install a FULL CRYSTAL REPORT PROGRAM on any PC that runs my program ? Or else, how can I REGISTER the Crystl32.OCX on other PC ? Oh, What a headache.

Thanks for your attention and reply in advance.

December 30th, 1999, 11:30 AM
I'm not sure that Crystl32.OCX doesn't require any additional files for registration. But if everything is fine try to register it manually. Click on Start, Run, then type 'regsvr32.exe Crystl32.OCX', or give the full path for Crystl32.OCX .
Vlad

December 30th, 1999, 07:59 PM
Hi
I still can't register the ocx and dll thru the regsvr32, an error message
box like
'LoadLibrary ("C:\windows\system\crystl32.ocx") Failed. GetLastError
Returns. 0X00000485'

'LoadLibrary ("C:\windows\system\crpe32.dll") Failed. GetLastError
Returns. 0X00000485'

Please, what can I do on this ? I remember the documentation of VB5 enterprise edition only specifies the CRPE32.dll (engine) is a must to be included when distributing the executable file if it used crystal report activeX control for report generation. My program has to be run on more than 20 PCs internally within my company in a hurry, what can I do now ? Have to install full crystal report software on more than 20 PCs before running my program ? Wah, what a headache trouble...@_@

Keshri Asthana
April 23rd, 2002, 09:18 PM
Please copy Implode.dll along with the Crystl32.ocx and Crpe32.dll in windows system directory and then register the activex control. This may solve the problem


Keshri Kr Asthana

Twodogs
April 24th, 2002, 01:52 AM
Had this problem a couple of years ago, and while I can't remember how I solved it, I can remember that the answer was in the help file (available thru the VB object browser) or on the Crystal website (which I can't remember the URL of seeing as they've had a name change recently). It had something to do with the full version of the OCX having to be registered correctly on the DEVELOPMENT machine. If you used the shareware version, you will never get it to run....

Niall Baird
Director
VB Web Solutions Pty Ltd
Victoria, Australia