Solved

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

Posted on 2014-09-12
6
235 Views
Last Modified: 2014-10-07
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
0
Comment
Question by:AMDewar
  • 4
  • 2
6 Comments
 
LVL 40
ID: 40320776
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.
0
 
LVL 1

Author Comment

by:AMDewar
ID: 40322433
Thanks I will look for them.
0
 
LVL 1

Author Comment

by:AMDewar
ID: 40324552
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."
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 40
ID: 40325273
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.
0
 
LVL 1

Accepted Solution

by:
AMDewar earned 0 total points
ID: 40333939
OK I will look those up. I am not familiar with which versions were buggy and which ones worked well. I will look them up. You say Wikipedia page will tell you which version the dll's and ocx files came from? I will try to trace them down.
0
 
LVL 1

Author Closing Comment

by:AMDewar
ID: 40365556
Finding the right DLL'S worked.
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question