Question
How to view and select licenses in ABBYY SDK products?
Answer
You can use the following code (C#) to list the available licenses based on the projectID
value, which should be passed to the GetAvailableLicenses()
method.
ILicenses licenses = Engine.GetAvailableLicenses("projectID"); for (int i = 0; i < licenses.Count; i++) Console.WriteLine("{0}", licenses[i].SerialNumber); Engine.SetCurrentLicense(licenses[0]);
To select and use the correct license, you should pass the correct License
object to the SetCurrentLicense
method. This procedure should be performed right after the creation of the Engine
object.
Comments
0 comments
Please sign in to leave a comment.