> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# OnBatchProgress Method of the IBatchEvents Interface

This method is implemented on the client side. It is called by ABBYY FlexiCapture SDK for some of the methods of the [**Project**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/project.md) and [**Batch**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/batch.md) objects. It delivers to the client information about the number of processed and remaining to process pages. Its implementation may show a progress indicator.

## Syntax

```vb Visual Basic .NET theme={null}
Sub OnBatchProgress( _
  ByVal batch As IBatch, _
  ByVal processedItemsCount As Integer, _
  ByVal remainingItemsCount As Integer _
)
```

```cpp C++ theme={null}
HRESULT OnBatchProgress(
  IBatch* batch,
  int    processedItemsCount,
  int    remainingItemsCount
);
```

## Parameters

**batch**

\[in] This parameter refers to the [**Batch**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/batch.md) object which sends notifications.

**processedItemsCount**

\[in] This parameter contains the number of processed pages.

**remainingItemsCount**

\[in] This parameter contains the number of pages remaining to process.

## Return values

This method has no specific return values. It returns the [standard return values of ABBYY FlexiCapture SDK functions](https://docs.abbyy.com/flexi-capture/sdk/api-reference/errorcodes.md).

## Remarks

A client implementation of this method must assure that all exceptions thrown inside the method are caught and handled and no exceptions are propagated outside the method. Propagation of an exception outside the method may lead to unpredictable results (such as program termination).

## See also

[**IBatchEvents**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/ibatchevents.md)

[**Batch**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/batch.md)

[**Project**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/project.md)
