Commit Method of the VendorRecords Object
This method commits all the changes you made to the vendor records since the previous commit.
You can use this method only if the invoice DocumentDefinition has been switched to editing mode by the CheckOut method. After one or several calls to this method, use the CheckIn method to save all the committed changes to the Document Definition or the UndoCheckout method to discard all the committed changes.
Syntax
Visual Basic .NET
Function Commit(Callback As ProcessingEvents) As RejectedDatasetRecords
C++
HRESULT Commit( IProcessingEvents* Callback, IRejectedDatasetRecords** RejectedRecords )
Parameters
- Callback
- [in] Refers to an object implementing the IProcessingEvents interface that will inform the user of the progress and errors that occurred while writing the data to the vendors database, and provide a way to abort the operation. You may pass NULL for this parameter.
- RejectedRecords
- [out, retval] A pointer to IRejectedDataSetRecords* pointer variable that receives the interface pointer of the output RejectedDataSetRecords object. This object will contain all the vendor records that failed to be written into the database, with error messages explaining the reason for the failure. Each rejected record is represented by a RejectedDataSetRecord object, which may be cast to VendorRecord type.
Return values
This method has no specific return values. It returns the standard return values of ABBYY FlexiCapture SDK functions.
See also
15.08.2023 13:19:30