InitializeComponent();
try
{
string mylice = @"E:\Ann's公共类库\Leadtools\Solution1\ocrWinfrom\bin\Debug\eval-license-files.lic";
string myliceKey = @"E:\Ann's公共类库\Leadtools\Solution1\ocrWinfrom\bin\Debug\eval-license-files.lic.key";
RasterSupport.SetLicense(mylice, myliceKey);
_IOcrEngine = OcrEngineManager.CreateEngine(OcrEngineType.Professional, false);
}
catch (Exception ex)
{
throw;
}
从网上教程看到的例子,仿照着写的,结果本地在一开始初始化就不能通过,解锁OCR功能的时候。leadtools在网上下载的试用版。ps:dll已引入导项目中
|