Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Sunday, May 11, 2008 1:53:16 PM(UTC)
scrap2000

Groups: Registered
Posts: 15


I have Leadtools 14.5, Delphi 7, Win XP Pro. When I call LEADRasterDocument1.StartUp(), I get this error:
LEAD Error: OCR engine initialization error, or there is no appropriate license.

I get the error on my test deployment machine. On the development machine everything runs ok.

This is the code:

procedure TFormMain.FormCreate(Sender: TObject);
var rf: ILEADRasterFactory;
    LEADRasterObj: ILEADRaster;
begin
  rf := CreateComObject(CLASS_LEADRasterFactory) as LEADRasterFactory;
  LEADRasterObj:= rf.CreateObject2('LEADRaster.LEADRaster', 'LEADTOOLS OCX Copyright (c) 1991-2005 LEAD Technologies, Inc.') as LEADRaster;
  LEADRasterObj.UnlockSupport(L_SUPPORT_OCR, 'MyCode');

  LEADRasterDocument1.StartUp();
end;

I have copied and registered the following dlls on the deployment machine:
ltdoc14n.dll
ltkrn14n.dll
ltr14n.dll
ltrdc14n.dll
ltrio14n.dll
ltrpr14n.dll
ltrvr14n.dll

What do I need to do to make it work on the deployment machine?
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Monday, May 12, 2008 5:41:31 AM(UTC)

Adnan Ismail  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)






Did you deploy the OCR engine DLLs with your application?
Please
read the help topic "Files to be Included with Your Application" in our OCR COM help file.
In
general, you should copy all OCR engine files to the target machine, either in the SYSTEM32 folder or in the folder that contains the application's EXE.

 
#3 Posted : Monday, May 12, 2008 10:22:59 AM(UTC)
scrap2000

Groups: Registered
Posts: 15


I don't have all the files that are listed in the help topic "Files to be Included with Your Application" in my REDIST directory. I don't even have the REDIST/OCR subdirectory, which should be in the Program files/Leadtools directory according to the OCR COM object help.

Anyway, I found the required files in my Windows/System32 directory. I copied them from here to the deployment machine and now my OCR application works on the deployment machine too.
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.062 seconds.