05-11-2008, 18:58
|
scrap2000
Joined on 05-17-2006
Posts 22
|
OCR engine initialization error, or there is no appropriate license
|
 
 
|
|
|
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
|
|
|
|