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

# SaveTo Method of the ImageDocument Object

This method saves the contents of the [**ImageDocument**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/imagedocument.md) object into a folder on disk. The image is saved in ABBYY FlexiCapture SDK [internal format](https://docs.abbyy.com/flexi-capture/sdk/api-reference/imagedocument.md#internal-format). The **ImageDocument** object saved using this method can be opened with the help of the [**IEngine::LoadImageDocument**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/engine-loadimagedocument.md) method only.

## Syntax

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

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

## Parameters

**folderName**

\[in] This parameter stores the full path to the folder. For example, "C:\MyPic".

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

## See also

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

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