Solved

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

Posted on 2014-09-12
6
247 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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 utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

728 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