> ## 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.

# Open Method of the Batch Object

This method opens the batch (sets the value of the [**IBatch::IsOpen**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/batch.md#isopen) property to TRUE). You should open the batch before working with it as some properties and methods are not accessible for the closed batch. An open batch uses more resources than a closed one. So if you have finished your work with the batch and need to free some resources, call the [**Close**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/batch-close.md) method of the [**Batch**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/batch.md) object.

## Syntax

```vb Visual Basic .NET theme={null}
Sub Open()
```

```cpp C++ theme={null}
HRESULT Open();
```

## 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).

## Samples

> [accordion] C++ (COM) code
>
> ```cpp theme={null}
> // Global ABBYY FlexiCapture SDK Engine object.
> FCEngine::IEnginePtr Engine;
> ...
> // Open the project
> FCEngine::IProjectPtr project = Engine->OpenProject("D:\\TestProject\\TestProject.fcproj");
> // Add new batch
> FCEngine::IBatchPtr batch = project->Batches->AddNew( L"TestBatch" );
> // Open the batch
> batch->Open();
> // Add images to the batch, recognize documents, export results, etc.
> ...
> ```

This method is used in all [code samples](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/samples.md).

## See also

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

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