Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

crystl32.ocx issues

Status
Not open for further replies.

nevets72

Programmer
Feb 6, 2002
22
US
Hi....hopefully someone has come accross these errors....I've posted this issue on a few VB sites, but haven't gotten anywhere! When I try to open up a project in VB, I get the following message...."crystl32.ocx could not be loaded--Continue Loading Project?" Additionally, when I do open the project, I can't open up one of the forms in the project.....I get the following message...."Path/File Access Error". Lastly, in a log file associated with the aforementioned form, I get the message...."Class Crystal.CrystalReport of control rptReport was not a loaded control class."
I recently downloaded 'Depends' and used it to see if I had some files missing, but when I checked for dependencies on the crystl32.ocx file, everything was fine. Also, I tried running the following commands 'regsvr32 crystl32.ocx' as well as 'regsvr32.exe crystl32.ocx' but to no avail...does anyone have any ideas? Thanks!
 
You have the Crystal OCX on a form in your VB project. If you go to Project / Components and scroll down until you get to "Crystal Report Control", is it checked? Below it shows you the path of the file. Does that file exist in that directory on your PC?
 
1.You have included Crystal control in any one of the forms in your vb project.So you Project / Components and scroll down until you get to "Crystal Report Control".check it. Below it shows you the path of the file.
Then click ok and save and close the project.
Reopen the project .. this time it will not give you the error.
2.before doing this also try this option:
when the alert box will come just go on clicking OK button
Ultimately your project will open.
But the point 1. is the solution
 
This problem will also occur if you upgrade from an older version to CR8.5 developer. The OCX is different, so find the form the Control is on.
Remove it from the Form (it has probably mutated to a PictureBox by now),
Remove it from the components window, and then add the newer CRYSTL32.OCX component,
Place the control back on the form. If you use the original name all your code should still work.

messy i know, but it fixes the problem, Editor and Publisher of Crystal Clear
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top