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)
DigiBEAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.