AddNew Method of the FieldsExtractionTrainingBatches Object
This method creates and adds a new batch for the specified section of a Document Definition. You may also specify a section variant, binding the new batch to a given data set record.
Only one training batch may be created per section variant. It is recommended to use Find method before creating a new one.
If you are working with a FlexiCapture invoice project, note that an invoice Document Definition will have only one section, with variants bound to vendor records.
Visual Basic .NET
Function AddNew( _ Name As String, _ Section As SectionDefinition, _ Record As DataSetTableRecord _ ) As FieldsExtractionTrainingBatch
HRESULT AddNew( BSTR Name, ISectionDefinition* Section, IDataSetTableRecord* Record, IFieldsExtractionTrainingBatch** Result );
- [in] The name of the new batch.
- [in] The SectionDefinition object representing the section of a Document Definition for which the batch is created.
- [in] The DataSetTableRecord object corresponding to the section variant.
For a non-invoice project, this is a record from the "Variants" data set of the section passed in the Section parameter.
For an invoice project, this is a record from the "Vendors" data set. You may cast the VendorRecord object to this type using the AsDataSetTableRecord property.
- [out, retval] A pointer to the IFieldsExtractionTrainingBatch* variable that receives the interface pointer for the added batch.
This method has no specific return values. It returns the standard return values of ABBYY FlexiCapture SDK functions.
3/24/2023 8:48:38 AM