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

# Export Method of the Batch Object

This method saves results of processing of the specified documents in selected location. You can save the results from all the documents of the batch or specify particular documents to export results from. To set the destination, file format and other export settings, use the [**ExportParams**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/exportparams.md) object.

> [!NOTE]
>
> Recalling the **Export** method with the same export settings is not performed.

## Syntax

```vb Visual Basic .NET theme={null}
Sub Export( _
  DocIds As IntsCollection, _
  Params As ExportParams _
)
```

```cpp C++ theme={null}
HRESULT Export(
  IIntsCollection*  DocIds,
  IExportParams*    Params
);
```

## Parameters

**DocIds**

\[in] This parameter refers to the [**IntsCollection**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/intscollection.md) object that contains a set of identifiers of the documents to export results from. This parameter may be 0, in which case export is performed for all the documents of the batch.

**Params**

\[in] This parameter refers to the [**ExportParams**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/exportparams.md) object that contains parameters of export. This parameter may be 0, in which case for each document the export parameters of the corresponding Document Definition are used.

> [!NOTE]
>
> If there is no corresponding Document Definition, the export parameters of the [IBatchTypeParams::ExportParamsForUnknownDocuments](https://docs.abbyy.com/flexi-capture/sdk/api-reference/batchtypeparams.md#exportparamsforunknowndocuments) property are used. If there is no batch type, the export parameters of the [IProjectProperties::ExportParamsForUnknownDocuments](https://docs.abbyy.com/flexi-capture/sdk/api-reference/projectproperties.md#exportparamsforunknowndocuments) property are used.

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

To export results from documents of several batches, use the [**Export**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/project-export.md) method of the [**Project**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/project.md) object.

## 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 and recognize documents
> ...
> // Export results
> batch->Export( 0, 0 );
> ```

## See also

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

[Tuning Export Parameters](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/exportparams.md)
