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

# Step 5: Export Results

After the [documents are recognized](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/engine-recognizing.md), you need to save the recognized data. ABBYY FlexiCapture 12 SDK allows you to save recognized data to a file in XLS, XLSX, DBF, TXT, CSV, or XML format, and save an electronic copy of your document, e.g. in PDF or PDF/A format. You can use the **Export** method of the [**Project**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/project.md) or [**Batch**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/batch.md) object. The first one allows you to export results from several batches, while the second one performs export from several documents of the batch. Also you can create export profiles with the specified export parameters in a Document Definition using [**AddNew**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/exportprofiles-addnew.md) method of the [**ExportProfiles**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/exportprofiles.md) object.

![](https://mintcdn.com/abbyy/DG4YBah30S0eFFo5/images/flexi-capture/sdk/TutorialProject_Export.jpg?fit=max\&auto=format\&n=DG4YBah30S0eFFo5\&q=85\&s=20ca207334b18bad15db240d46b73fa5)

Use the following procedure:

1. \[optional] Create a [**IntsCollection**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/intscollection.md) object and specify the documents in the batch (or batches in the project) to export. You can also pass a NULL object, to export all document in the batch (or all batches in the project)
2. \[optional] Create a [**ExportParams**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/exportparams.md) object and specify the export parameters. Currently, only export to file is available. For details, see the [Tuning Export Parameters](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/exportparams.md) section.
3. Call the **Export** method of the [**Batch**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/batch-export.md) (or [**Project**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/project-export.md)) object to save the document to a file in a specified format.
4. After you have finished working with the batch, call the [**Close**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/batch-close.md) method of the corresponding **Batch** object to close the batch and free the resources.
5. After you have finished working with the project, call the [**Close**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/project-close.md) method of the **Project** object to close the project and free the resources.

> [accordion] C++ (COM) code
>
> ```cpp theme={null}
> // Global ABBYY FlexiCapture SDK Engine object.
> // Create the Engine object
> ...
> // Open a project
> FCEngine::IProjectPtr project = Engine->OpenProject( L"D:\\TestProject\\TestProject.fcproj" );
> // Add a new batch
> FCEngine::IBatchPtr batch = project->Batches->AddNew( L"TestBatch" );
> // Open the batch
> batch->Open();
> // Add some images to the batch
> ...
> // Recognize the documents
> batch->Recognize( 0, FCEngine::RM_ReRecognizeMinimal, 0 );
> batch->Export( 0, 0 );
> // Close the batch and the project when you're done
> batch->Close();
> project->Close();
> ```

This procedure is used in the ABBYY FlexiCapture 12 SDK samples which can be found in the **Samples** folder (Start > Programs > ABBYY FlexiCapture 12 SDK > Code Samples Folder).

## Additionally

You can [change the export parameters](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/exportparams.md). By default, the parameters specified in the Document Definitions are used.

If the export methods provided by ABBYY FlexiCapture 12 SDK are not suitable for your task for some reason, you can implement your own export procedure. For example, you can [traverse all fields](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/workingwithrecognizeddata.md) of a document and export their values.

## See also

[Final Step: Unload FlexiCapture 12 SDK](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/engine-unloading.md)

[Step 4: Recognize Documents](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/engine-recognizing.md)
