Click or drag to resize

OcrPropertiesAnalysisOcrFileTypes Property

Gets or sets a list of file types to get queued for OCR by the analyzer when the QueueForOcrDuringAnalysis attribute is active.

Namespace:  Law.EdaIntegration.Ocr
Assembly:  Law.EdaIntegration (in Law.EdaIntegration.dll) Version: 7.3
Syntax
C#
public List<string> AnalysisOcrFileTypes { get; set; }

Property Value

Type: ListString
Remarks
List defaults to include all of the most common file types. A list of supported file type Id's can be found by using GetValidOcrFileTypes. Duplicate file type Id's will be removed from the list automatically when set.
Examples
The following example demonstrates setting a list of valid file types for OCR.
C#
using System.Collections.Generic;
using Law.EdaIntegration;
using Law.EdaIntegration.Case;
using Law.EdaIntegration.Ocr;

class Sample
{
    public static void Main()
    {
        string connectionString = @"Data Source=localhost;Initial Catalog=EDA_Management;Integrated Security=False;User ID=myUserId;Password=myPassword";
        EdaIntegration edaIntegration = new EdaIntegration();
        edaIntegration.InitializeEnvironment(connectionString);

        Case edaCase = edaIntegration.Cases.OpenCaseByName("Case 1");

        //Get the list of valid OCR file types
        List<string> ocrFileTypeIds = Law.EdaIntegration.Ocr.OcrManager.GetValidOcrFileTypes();

        // Set the AnalysisOcrFileTypes list
        edaCase.OCR.Properties.AnalysisOcrFileTypes = ocrFileTypeIds;

        // Save the changes to the case
        edaCase.OCR.UpdateProperties();
    }
}
See Also