Results 1 to 6 of 6

Thread: Distributing Crystal Report Engine & ActiveX Control

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 1999
    Posts
    16

    Post

    Hi
    I've written a small application (in VB 5 Enterprise Edition) that uses crystal report for report generation. I just compile my project into EXE (Native Code), WITHOUT using application setup wizard. All the necessary DLLs and OCXs are put together with the Executable file in a folder. I can run my executable file on other PCs that don't have pre-installed VB5, the only problem is I CAN'T run the part that uses Crystal Report ActiveX. A message like "Component Crystl32.ocx Not Correctly Registered: File Is Missing Or Invalid" appears, and then the program suddenly quits.

    In fact, I also packed the Crystl32.ocx and Crpe32.dll (Engine) in the same folder , and then I made another copy of these files into the windows\system\ directory, the message still appears. As I read thru the documentation, there's no need to include Crystl32.ocx but Crpe32.dll in a compiled and distributable program. I don't know why there's a message prompting me that Crystl32.ocx is not registered correctly. In this case, should I install a FULL CRYSTAL REPORT PROGRAM on any PC that runs my program ? Or else, how can I REGISTER the Crystl32.OCX on other PC ? Oh, What a headache.

    Thanks for your attention and reply in advance.

  2. #2

    Thread Starter
    Junior Member
    Join Date
    Jul 1999
    Posts
    16

    Post

    Hi
    I still can't register the ocx and dll thru the regsvr32, an error message
    box like
    'LoadLibrary ("C:\windows\system\crystl32.ocx") Failed. GetLastError
    Returns. 0X00000485'

    'LoadLibrary ("C:\windows\system\crpe32.dll") Failed. GetLastError
    Returns. 0X00000485'

    Please, what can I do on this ? I remember the documentation of VB5 enterprise edition only specifies the CRPE32.dll (engine) is a must to be included when distributing the executable file if it used crystal report activeX control for report generation. My program has to be run on more than 20 PCs internally within my company in a hurry, what can I do now ? Have to install full crystal report software on more than 20 PCs before running my program ? Wah, what a headache trouble...~@_@~

    Any other solutions ? Thanks for your guidance in advance.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jul 1999
    Posts
    16

    Post

    Knight
    Sorry, when posting the first message, the process got stucked there, then I click for another time as I thought the first posting met the failure.

  4. #4
    Lively Member
    Join Date
    Dec 1999
    Location
    Karlsruhe, Germany
    Posts
    122

    Post

    Hi,

    the 'problem' in your case is COM. The Crystal Reports OCX is a COM component that has to be registered in the Registry.

    Try REGSVR32 to register the Crystl32.OCX manually.


  5. #5
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Post

    Files needed for Crystal Reports:

    Control

    Crystl32.ocx


    Crystal Reports Runtime Files
    Crpaig32.dll
    Crpe32.dll
    Crxlat32.dll
    Implode.dll
    P2sodbc.dll


    Crystal Reports Export Format Files
    U2ddisk.dll
    U2dmapi.dll
    U2fcr.dll
    U2fdif.dll
    U2fhtml.dll
    U2fodbc.dll
    U2frec.dll
    U2frtf.dll
    U2fsepv.dll
    U2ftext.dll
    U2fwks.dll
    U2fwordw.dll
    U2fxls.dll


    ------------------

    Serge

    Software Developer
    [email protected]
    ICQ#: 51055819


  6. #6
    Guest

    Post

    I just realized you had two message topics with the same info in each.. heh...



    ------------------
    John T. Mieske
    Knight Vision Enterprises

    [email protected]

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