Gets or sets the path to the folder containing the OCR engine files.
Syntax
Visual Basic (Declaration) | |
---|
Public Shared Property EnginePath As String |
C# | |
---|
public static string EnginePath {get; set;} |
Managed Extensions for C++ | |
---|
public: __property static string* get_EnginePath();
public: __property static void set_EnginePath(
string* value
); |
Return Value
The path to the folder containing the OCR engine files.
Example
Visual Basic | Copy Code |
---|
Public Sub EnginePathExample()
RasterSupport.Unlock(Leadtools.RasterSupportType.Ocr, "TestKey")
Dim rasterDocument As RasterDocumentEngine
rasterDocument = RasterDocumentEngine.Instance
RasterDocumentEngine.EnginePath = "C:\MyApp\Ocr"
Try
rasterDocument.Startup()
rasterDocument.Shutdown()
Catch e1 As Exception
End Try
End Sub |
C# | Copy Code |
---|
public void EnginePathExample(RasterDocumentEngine ocr) { // Tell LEADTOOLS where to look for the OCR engine files in the new location // Assume that you copied the LEADTOOLS OCR Module files from "LEADTOOLS"\Redist\Ocr to C:\MyApp\Ocr RasterDocumentEngine.EnginePath = @"C:\MyApp\Ocr"; try { ocr.Startup(); } catch(Exception) { // Handle error here } } |
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