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

# Project オブジェクトの Export メソッド

このメソッドを使用すると、プロジェクトの処理結果を保存できます。プロジェクト内のすべてのドキュメントの結果を保存することも、エクスポート対象とする特定のバッチを指定することもできます。エクスポート先、ファイル形式などのエクスポート設定を指定するには、[**ExportParams**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/exportparams.md) オブジェクトを使用します。

> [!NOTE]
>
> 同じエクスポート設定で **Export** メソッドを再度呼び出しても、エクスポートは実行されません。

## 構文

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

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

## パラメーター

**BatchIds**

\[in] このパラメーターは、結果のエクスポート元となるバッチの識別子のセットを格納する [**IntsCollection**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/intscollection.md) オブジェクトを参照します。このパラメーターはオプションで、0 に設定することもできます。その場合は、プロジェクト内のすべてのドキュメントがエクスポートされます。

**ExportParams**

\[in] このパラメーターは、エクスポートパラメーターを格納する [**ExportParams**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/exportparams.md) オブジェクトを参照します。このパラメーターには 0 を指定することもできます。その場合は、各ドキュメントについて、対応する Document Definition のエクスポートパラメーターが使用されます。

> [!NOTE]
>
> 対応する Document Definition が存在しない場合は、[IBatchTypeParams::ExportParamsForUnknownDocuments](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/batchtypeparams.md#exportparamsforunknowndocuments) プロパティのエクスポートパラメーターが使用されます。バッチタイプが存在しない場合は、[IProjectProperties::ExportParamsForUnknownDocuments](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/projectproperties.md#exportparamsforunknowndocuments) プロパティのエクスポートパラメーターが使用されます。

## 戻り値

このメソッドには固有の戻り値はありません。[ABBYY FlexiCapture SDK 関数の標準の戻り値](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/errorcodes.md)を返します。

## 備考

バッチ内の一部のドキュメントのみをエクスポートするには、[**Batch**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/batch.md) オブジェクトの [**Export**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/batch-export.md) メソッドを使用します。

## サンプル

> [accordion] C++ (COM) コード
>
> ```cpp theme={null}
> // グローバルな ABBYY FlexiCapture SDK の Engine オブジェクト。
> FCEngine::IEnginePtr Engine;
> ...
> // プロジェクトを開く
> FCEngine::IProjectPtr project = Engine->OpenProject("D:\\TestProject\\TestProject.fcproj");
> ...
> // プロジェクトにバッチを追加し、必要な設定を行い、プロジェクトの画像を認識する
> ...
> // 結果を保存する
> project->Export( 0, 0 );
> ...
> ```

このメソッドは、次のコード サンプルで使用されています：[Hello](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/samples.md#hello)

## 関連項目

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

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

[エクスポートパラメーターの調整](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/exportparams.md)
