Gets the path to the work directory used by this IOcrEngine to store the engine temporary files.
string WorkDirectory {get;}
ReadOnly Property WorkDirectory As String
string WorkDirectory {get;}
@property (nonatomic, copy, readonly, nullable) NSString *workDirectory
public String getWorkDirectory()
get_WorkDirectory();
property String^ WorkDirectory {
String^ get();
}
The path to the work directory used by this IOcrEngine to store the engine temporary files.
The WorkDirectory is passed as the workDirectory parameter to the Startup method. This directory is used when the engine saves the its temporary files. The IOcrEngine object will create various temporary files during recognition and document saving processes. It will use the path passed in WorkDirectory as the location where these temporary files will be created. You can pass null (Nothing in VB) to let the engine select the temporary directory of the current logged in user (TEMP).
In either case, the value of working directory of the current started IOcrEngine can be obtained through the WorkDirectory property.
The engine will automatically deletes any temporary files created. However, if an unexpected error occurs (for example, an unhandled exception), some temporary files may still reside in the work directory after the application exits. A typical application may use a custom directory inside the application path and manually deletes any files that may reside there before calling Startup in case the previous instance of the application exited abnormally.
If the value of WorkDirectory is not null (Nothing in VB), then it must refer to a valid directory that exists in the system and the process that created the engine must have access rights to read, write and delete files from this directory.
The value WorkDirectory will hold the current work directory used by the OCR engine, if you passed null (Nothing in VB) in the Startup method, the value of this property will be set to the current logged in user TEMP value.
For an example, refer to Startup.
Products |
Support |
Feedback: WorkDirectory Property - Leadtools.Forms.Ocr |
Introduction |
Help Version 19.0.2017.6.6
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.