Starts the OCR document engine and initializes the handle.
Syntax
Visual Basic (Declaration) | |
---|
Public Sub 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(LeadtoolsExamples.Common.ImagesPath.Path + "OCRDefault.set")
rasterDocument.FillMethod = RasterDocumentFillMethod.OcrA
rasterDocument.SaveSettings(LeadtoolsExamples.Common.ImagesPath.Path + "OCRsetting.set")
rasterDocument.LoadSettings(LeadtoolsExamples.Common.ImagesPath.Path + "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(LeadtoolsExamples.Common.ImagesPath.Path + "OCRDefault.set"); rasterDocument.FillMethod = RasterDocumentFillMethod.OcrA; // save updated settings rasterDocument.SaveSettings(LeadtoolsExamples.Common.ImagesPath.Path + "OCRsetting.set"); // load default settings rasterDocument.LoadSettings(LeadtoolsExamples.Common.ImagesPath.Path + "OCRDefault.set"); rasterDocument.Shutdown(); } |
Remarks
Requirements
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family
See Also