• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 7724
  • Last Modified:

Delphi 7 and Crystal Reports 10 VCL problem - Error:512 Print Engine not opened (CRPE32.DLL)

Hello,

We are trying to implement Crystal Reports 10 VCL in a Delphi 7 application.

All is ok when Crystal Reports 10 is fully installed on the machine.

But when we try to setup the application at a customer (who of course
hasn't the complete Crystal Reports environment installed) we cannot
run the Print Engine (CRPE32.DLL)

--> Error:512 Print Engine not opened

All runtime files are copied according the documentation:

CDO32.DLL, P2SMON.DLL, CRPE32.DLL, MSVCRT20.DLL CRPAIG80.DLL (this
was actually CRPAIG32.DLL), CTL3D32.DLL & IMPLODE.DLL are in the system32
folder of Windows.

Even Crystal Report's OWN DEMO-program (CrystalVCL.exe)  gives the same error!!

Please can anyone help me??

Marc (Digi Belgium)
0
DigiBE
Asked:
DigiBE
1 Solution
 
DragonSlayerCommented:
Maybe one of the crystal dll files needs to be registered using regsvr32?

How did you deploy it anyway? I believe Crystal Reports provide Merge Modules for Installers to install and set all the necessary dependancies.
0
 
DragonSlayerCommented:
I believe you need to call regsvr32 crpe32.dll to register the DLL in the target machine.
0
 
VoodoomanCommented:
Hi

If its just one client, install Crystal reports then remove the Crystal Reports Directory.

This will remove the executables but leave the redistibutables behind.

Seagate used to give a trial version of ver 7.0.  We used to install that all over the place and dump the executables or even just let the trial expire to avoid having to build a proper setup for the piece of junk (powerful it is - nice it isnt...)

Do they do a trial of Version 10?

Voodooman
0
 
RMCollinsCommented:
Make certain you have Crystal in your interface uses section

Uses
  UCrpeClasses, UCrpe32;

You may want to check if the print engine is loaded and force loading it if no handle is present.

 // Call this just before starting the print routines
 // Crpe1 is Crystals default instance name you may have to change it accourding to how you made reference
 // Load Report Engine if not loaded
   if (Crpe1.CrpeHandle = 0) then
     Crpe1.LoadEngine;

You may also want too make sure the Crystal DLL's ( deployed ) path is in the path settings or same folder as the program exe.


0
 
moduloCommented:
PAQed with no points refunded (of 125)

modulo
Community Support Moderator
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now