Click or drag to resize

OcrManagerGetValidOcrFileTypes Method

Get a list of the file types that support OCR.

Namespace:  Law.EdaIntegration.Ocr
Assembly:  Law.EdaIntegration (in Law.EdaIntegration.dll) Version: 7.3
Syntax
C#
public static List<string> GetValidOcrFileTypes()

Return Value

Type: ListString
A list of file type Id's.
Examples
The following example demonstrates retrieving a list of valid file types for OCR.
C#
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