LEADTOOLS Support
Document
Document SDK Questions
OCR engine initialization error, or there is no appropriate license
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Sunday, May 11, 2008 1:53:16 PM(UTC)
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?
#2
Posted
:
Monday, May 12, 2008 5:41:31 AM(UTC)
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)
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.
LEADTOOLS Support
Document
Document SDK Questions
OCR engine initialization error, or there is no appropriate license
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.