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

# SaveToStream Method of the Layout Object

This method saves the object contents into the stream.

## Syntax

### C++

```cpp theme={null}
HRESULT SaveToStream( IWriteStream* WriteStream );
```

### C\#

```csharp theme={null}
void SaveToStream( IWriteStream WriteStream );
```

### Visual Basic .NET

```vb theme={null}
Sub SaveToStream(WriteStream As IWriteStream)
```

## Parameters

WriteStream

\[in] This parameter refers to a [IWriteStream](/fine-reader/engine/api-reference/supplementary-objects-and-methods/iwritestream) variable that provides access to a write stream.

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

## Remarks

In Linux, this method does not work if the Engine object is loaded as an out-of-process server.

## See also

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