Solved

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

Posted on 2014-09-12
6
216 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

Expert Comment

by:Jacques Bourgeois (James Burger)
Comment Utility
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
Comment Utility
Thanks I will look for them.
0
 
LVL 1

Author Comment

by:AMDewar
Comment Utility
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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 40

Expert Comment

by:Jacques Bourgeois (James Burger)
Comment Utility
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
Comment Utility
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
Comment Utility
Finding the right DLL'S worked.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
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…

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now