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

This method allows you to save the results of project processing. You can save the results for all the documents of the project or specify particular batches 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( _
  BatchIds As IntsCollection, _
  ExportParams As ExportParams _
)
```

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

## Parameters

**BatchIds**

\[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 batches to export results from. This parameter is optional and may be set to 0, in which case export is performed for all the documents of the project.

**ExportParams**

\[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 only several documents from the batch, use the [**Export**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/batch-export.md) method of the [**Batch**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/batch.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 batches to the project, set necessary settings, and recognize project images
> ...
> // Save the results
> project->Export( 0, 0 );
> ...
> ```

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

## See also

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

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

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