Link to home
Start Free TrialLog in
Avatar of Tony D
Tony D

asked on

Not able to get regsvr32 to register ocx files and runtime error 339

I have a database in an mdb file and supporting vb interface.
I do not have a install program and of coure the person that wrote it cannot be found. I have the database and the supporting files like the dll's and ocx files and I have tried to regsvr32 but I get a registerserver failed error.
When I click to get purchase order,
 I get a runtime error '339' Component crystl32.ocx or one of its dependencies is not correctly registered.: a file is missing or invalid.
The files are in the C:\windows\system32 folder. I tried to register them with regsvr32 and I get 'Load Library ("crystl32.ocx")failed- the specified file could not be found.
This is running on an XP o/s and was written about 8 years ago. we are working to get it updated. but need it now. It is working on system in a Win7 within a MS 2007 virtual PC.. but I have not been able to get the VPC to work on another MS Virtual 2007 PC. thanks for your help
Avatar of Jacques Bourgeois (James Burger)
Jacques Bourgeois (James Burger)
Flag of Canada image

This was a standard issue with Crystal Report.

If you have the crystl32.ocx, then register that one before the others. This sometimes worked.

But the easiest solution is to simply install Crystal Report itself. If you still have the tools that the programmer used (possibly Visual Basic 6 or Visual Studio 6), there is an installer for Crystal Report on one of the CDs.
Avatar of Tony D
Tony D

ASKER

Thanks I will look for them.
Avatar of Tony D

ASKER

I've gotten a hold of VS 2005 and installed it but still it gives me the "runtime error '339' Component crystl32.ocx or one of its dependencies is not correctly registered.: a file is missing or invalid."
I do not see a crystal reports folder on the CD.
I tried re-registering the OCX file but still getting  "runtime error '339' Component crystl32.ocx or one of its dependencies is not correctly registered.: a file is missing or invalid."
You never specified that you were working with Visual Basic .NET (VS2005), and you were talking about an old program. Also, registration problems with .ocx were frequent in the times of VB6 but not so frequent in .NET because by default, .NET does not uses .ocx files.

I thus assumed that you were talking about an application that was written in VB6.

Crystal Report is not provided on the DVD with Visual Studio as it was with VB6. You can activate it on the development station so that it will install from the vendors site, but you do not have an install program that you can use to install it on a user's computer.

And Crystal Report use is crippled with a lot of problems that combine together with that might make it difficult in your situation. Although it is a very powerful report generator, I do not know of anybody who has been able to use it for more than a few months without encountering difficulties.

It is very dependent on the version of the dlls and ocx that you install. So you usually need to install on your user's computer the same version as the one that was used when creating your application. And there have been more than 15 versions over the years.

Also, Crystal Report has changed hands a few times since it's creation. It is currently the property of SAP, and from what I can see on their web site, they do not seem to care at all about the previous versions. They do not even seem to offer a free entry level edition as was the case with previous owners.

What I would do if I where you would be first to check the version of the dlls that are used by your application. Combine that with the information in the Wikipedia page to determine which vendor provided that version. Then, communicate with them with your problem.
ASKER CERTIFIED SOLUTION
Avatar of Tony D
Tony D

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Tony D

ASKER

Finding the right DLL'S worked.