Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.6.9
|
Leadtools.Forms.Ocr Assembly > Leadtools.Forms.Ocr Namespace > IOcrAutoRecognizeManager Interface : EnableTrace Property |
bool EnableTrace {get; set;}
'Declaration
Property EnableTrace As Boolean
'Usage
Dim instance As IOcrAutoRecognizeManager Dim value As Boolean instance.EnableTrace = value value = instance.EnableTrace
bool EnableTrace {get; set;}
@property (nonatomic, assign) BOOL enableTrace
public boolean getEnableTrace() public void setEnableTrace(boolean value)
<br/>get_EnableTrace();<br/>set_EnableTrace(value);<br/>Object.defineProperty('EnableTrace');
If the value of this property is set to true, then this IOcrAutoRecognizeManager object will output debug messages with current status (page being loaded, zoned, recognized, saved, etc.) and any errors that may occur to the default .NET trace listener.
For example, to enable tracing to the .NET console, use the following code:
// Trace to the console
System.Diagnostics.Trace.Listeners.Add(new TextWriterTraceListener(Console.Out));
// Enable tracing in the OCR recognize manager
ocrAutoRecognizeManager.EnableTrace = true;
// Run the job
ocrAutoRecognizeManager.RunJob(ocrJob);
When tracing is enabled, the engine will use the OcrAutoRecognizeJobData.JobName value when writing trace messages to help easily identity jobs.
For more information on .NET tracing, refer to System.Diagnostics.Trace.