CreateEmbeddedLanguageByDataType Method of the TextRecognitionParams Object

This method creates a special recognition language, which can be used for recognition of the specified field value type.

It is not always convenient to specify the type of field value (IFieldDefinition::ValueType) as this restricts field values. E.g. if a user enters incorrect data to such field, this will produce an error. To avoid specifying some special type of field value, you may:

  1. Create a special language using this method. Set its parameters for recognition of a specific text.
  2. Assign the created language to ITextRecognitionParams::Language property of the recognition parameters of the corresponding field.


Visual Basic .NET

Function CreateEmbeddedLanguageByDataType(type As FieldValueTypeEnum) As Language


HRESULT CreateEmbeddedLanguageByDataType(
  FieldValueTypeEnum type,
  ILanguage**        result


[in] This variable specifies the type of the field value. See the descriptions of the FieldValueTypeEnum constants. Only the FVT_DateTime, FVT_Number, FVT_Currency constants can be used as the value of this parameter.
[out, retval] A pointer to the ILanguage* variable that receives the interface pointer for the created language.

Return values

This method has no specific return values. It returns the standard return values of ABBYY FlexiCapture SDK functions.

See also

Setting Up Recognition Languages


15.08.2023 13:19:30

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.