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

# ImageDocument オブジェクトの SaveTo メソッド

このメソッドは、[**ImageDocument**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/imagedocument.md) オブジェクトの内容をディスク上のフォルダーに保存します。画像は ABBYY FlexiCapture SDK の[内部形式](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/imagedocument.md#internal-format)で保存されます。このメソッドで保存した **ImageDocument** オブジェクトは、[**IEngine::LoadImageDocument**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/engine-loadimagedocument.md) メソッドでしか開けません。

## 構文

```vb Visual Basic .NET theme={null}
Sub SaveTo(folderName As String)
```

```cpp C++ theme={null}
HRESULT SaveTo(
   BSTR folderName
);
```

## パラメーター

**folderName**

\[in] このパラメーターには、フォルダーのフルパスを格納します。例: "C:\MyPic"

## 戻り値

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

## 関連項目

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

[**IEngine::LoadImageDocument**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/engine-loadimagedocument.md)
