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

# Attach Method of the Pages Object

This method allows you to move the specified page from one document to another.

## Syntax

```vb Visual Basic .NET theme={null}
Sub Attach( _
  page As Page, _
  position As Integer _
)
```

```cpp C++ theme={null}
HRESULT Attach(
  IPage* page,
  int    position
);
```

## Parameters

**page**

\[in] This variable refers to the page which is to be moved.

**position**

\[in] An index defining the point to move page to. Must be in a range from 0 to the value of the [**IPages::Count**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/pages.md) property.

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

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