Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

OCR engine initialization error, or there is no appropriate license
Started by scrap2000 at 05-11-2008 18:58. Topic has 2 replies.

Print Search « Previous Thread Next Thread »
  05-11-2008, 18:58
scrap2000 is not online. Last active: 5/11/2008 11:56:16 PM scrap2000

Top 100 Posts
Joined on 05-17-2006
Posts 22
OCR engine initialization error, or there is no appropriate license
Reply Quote
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?
   Report 
  05-12-2008, 10:46
Adnan Ismail is not online. Last active: 8/14/2008 1:40:07 PM Adnan Ismail



Top 10 Posts
Joined on 07-31-2006
Posts 1,124
Re: OCR engine initialization error, or there is no appropriate license
Reply Quote

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.


Adnan Ismail
LEADTOOLS Technical Support

   Report 
  05-12-2008, 15:27
scrap2000 is not online. Last active: 5/11/2008 11:56:16 PM scrap2000

Top 100 Posts
Joined on 05-17-2006
Posts 22
Re: OCR engine initialization error, or there is no appropriate license
Reply Quote
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.

   Report 
Post
LEAD Support Fo... » Developer » OCR » OCR engine initialization error, or there is no appropriate license

Powered by Community Server, by Telligent Systems