Starts the OCR document engine and initializes the handle.
Syntax
Visual Basic (Declaration) | |
---|
Public Sub Startup() |
Managed Extensions for C++ | |
---|
public: void Startup(); |
C++/CLI | |
---|
public:
void Startup(); |
Example
Visual Basic | Copy Code |
---|
Public Sub StartupExample(ByVal sender As Object, ByVal e As System.EventArgs)
RasterSupport.Unlock(Leadtools.RasterSupportType.Ocr, "TestKey")
Dim rasterDocument As RasterDocumentEngine
rasterDocument = RasterDocumentEngine.Instance
rasterDocument.Startup()
rasterDocument.SaveSettings("C:\Program Files\LEAD Technologies\LEADTOOLS 15\Images\OCRDefault.set")
rasterDocument.FillMethod = RasterDocumentFillMethod.OcrA
rasterDocument.SaveSettings("C:\Program Files\LEAD Technologies\LEADTOOLS 15\Images\OCRsetting.set")
rasterDocument.LoadSettings("C:\Program Files\LEAD Technologies\LEADTOOLS 15\Images\OCRDefault.set")
rasterDocument.Shutdown()
End Sub |
C# | Copy Code |
---|
public void StartupExample(object sender, System.EventArgs e) { RasterDocumentEngine rasterDocument; rasterDocument = RasterDocumentEngine.Instance; // Unlock OCR support. // Note that this is a sample key, which will not work in your toolkit. Leadtools.RasterSupport.Unlock(Leadtools.RasterSupportType.Ocr, "TestKey"); rasterDocument.Startup(); rasterDocument.SaveSettings(@"C:\Program Files\LEAD Technologies\LEADTOOLS 15\Images\OCRDefault.set"); rasterDocument.FillMethod = RasterDocumentFillMethod.OcrA; // save updated settings rasterDocument.SaveSettings(@"C:\Program Files\LEAD Technologies\LEADTOOLS 15\Images\OCRsetting.set"); // load default settings rasterDocument.LoadSettings(@"C:\Program Files\LEAD Technologies\LEADTOOLS 15\Images\OCRDefault.set"); rasterDocument.Shutdown(); } |
Remarks
Requirements
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also