Results 1 to 7 of 7

Thread: Crystl32.ocx could not be loaded

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2002
    Location
    India
    Posts
    3

    Question Crystl32.ocx could not be loaded

    When I copy entire project which uses Crystal Reports done in one system into another, and try to open the project, I am getting the problem crystl32.ocx could not be loaded. I copied the file crystl32.ocx into the folder

  2. #2
    New Member
    Join Date
    Aug 2002
    Location
    Australia
    Posts
    4

    Cool

    It sounds like you have a reference in your project to this control but when the project loads it is not finding the control where it expects it to be.

    I would suggest you register the control first on the PC using regsvr32 after you have placed the file in [WINDIR]\system or [WINDIR]\system32 directory.

    If this directory does not correspond to where it was on the other PC then you will have to remove the reference to this control in your project and then re-reference this control again in it's new directory (Hey it may be good idea to do this as a matter of course). When I say reference I mean the window you get if you go Ctrl-T in the VB IDE

    Once this is done you should not get that error any more

    Good Luck!

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2002
    Location
    India
    Posts
    3

    Re: Crystl32.ocx could not be loaded

    Originally posted by vavilikolanu
    When I copy entire project which uses Crystal Reports done in one system into another, and try to open the project, I am getting the problem crystl32.ocx could not be loaded. I copied the file crystl32.ocx into the folder
    This doesn't help me. I have copied the entire project code from one system to another system. Now I don't have the old one. So, I cannot remove the reference. And where ever I place crystl32.ocx file, it returns the error

  4. #4
    New Member
    Join Date
    Aug 2002
    Location
    Australia
    Posts
    4
    Ok,

    Question 1. Is that the exact message that comes up when you try to load the project? If not can you please give the exact wording of the message please.

    Question 2. Crystal32.ocx probably requires other files installed and\or registered on the PC which it uses ie DLLs and other EXEs.

    Do you have Crystal Reports actually installed on the new PC? If so can you view reports etc without any errors. It may be something related to this. From my experience with Crystal there are several runtimes that need to be installed if you Application makes use of crystal reports. You may want to refer Crystal Reports documentation or their website to find out what runtimes are required on the PC so you can run an Application using crystal reports (and for that matter develop an application using crystal reports).

    BlackDuck

  5. #5
    New Member
    Join Date
    Sep 2002
    Posts
    1
    If you already registered the control in windows, try opening references and selecting the two or three crystal reports references available there, and then do the same in components.

    This should solve the problem.

    Hope it helps.

  6. #6
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    Originally posted by vavilikolanu
    When I copy entire project which uses Crystal Reports done in one system into another, and try to open the project, I am getting the problem crystl32.ocx could not be loaded. I copied the file crystl32.ocx into the folder
    I had the exact same problem, moreover, when I tried to register the OCX, I got a error message telling me I couldn't!

    The only way I got around this was to install Crystal Reports on the machine itself, and then remove all of the interfaces which allow you to create reports leaving nothing but all of the OCXs and DLLs that Crystal uses. It registered its own stuff with no problems, and from that point on, I had no issue with the application.

    Needless to say, after that experience, Crystal Reports is no longer used at my company.

  7. #7
    New Member
    Join Date
    Aug 2002
    Location
    Australia
    Posts
    4
    Ok, I think the point is here, and something the original poster should listen to, is that you need to make sure that all the required runtimes are installed on the PC.

    For Crystal it is not just Crystal32.ocx, there are others. Refer to the attached document for details on how to determine what runtimes you need. Or go to http://www.crystaldecisions.com/ for further help. What files you need depend on how you are using the report and what database it is trying to connect to. If you have the delevoper version of Crystal it should have information on how to approach this issue.

    Installing the full Crystal Reports package would be the easiest way but do you really thing Crystal Reports would put out a development tools which requires you to then install this complete development tool on every PC that want to use the application that was developed with the tool??

    That's like saying everyone who wants to run an app developed in VB has to have Visual Studio installed! Personally I think Crystal Reports is an excellent development tool and if you are involved with development using Microsoft tools you had better get used to it.

    Sorry if this response is a little inflamatory, however I just want to give the original post some useful strategies on how to troubleshoot this issue. I have been involved with the development of Crystal Reports, and their distribution and these are the issues we came across.

    Regards

    Blackie

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width