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

# SaveToArray Method of the Layout Object

This method saves the object contents as an array of bytes.

## Syntax

### C++

```cpp theme={null}
HRESULT SaveToArray( SAFEARRAY(Byte)* Result );
```

### C\#

```csharp theme={null}
byte[] SaveToArray();
```

### Visual Basic .NET

```vb theme={null}
Function SaveToArray() As Byte
```

## Parameters

Result

\[out] This parameter refers to a data to be saved as an array of bytes.

## Return values

This method has no specific return values. It returns the [standard return values of ABBYY FineReader Engine functions](/fine-reader/engine/api-reference/return-codes).

## See also

[Layout](/fine-reader/engine/api-reference/layout-related-objects/layout)
