Solved

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

Posted on 2014-09-12
6
242 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
MS Dynamics Made Instantly Simpler

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

 
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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SLMGR Switches Are Not Working On KMS Host 3 169
How to Add / Edit Windows Menu 4 80
Problem to With line 4 86
Powerpoint 2013: Change cell reference in excel link 3 140
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

732 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