# OdfSaveResult

Serialized OpenDocument bytes and the entry-level report from one save operation.

Class 

`OfficeIMO.OpenDocument`

**Namespace**

`OfficeIMO.OpenDocument`

**Assembly**

`OfficeIMO.OpenDocument`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[OdfSaveResult.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfSaveResult.cs#L22)

**Modifiers**

sealed

Serialized OpenDocument bytes and the entry-level report from one save operation.

## Inheritance

- object
- OdfSaveResult

## Guides & Samples

Authored walkthroughs and practical samples linked to this API.

- [Create and Read ODT, ODS and ODP Files](/docs/open-document/create-read/) Guide
  
  Create OpenDocument text, spreadsheet and presentation files, read their content, edit them in place, and open password-protected files.

## Usage

Explore 30 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 30

- Method [OdfDocument.Save](/api/open-document/officeimo-opendocument-odfdocument/#method-save-officeimo-opendocument-odfsaveoptions)
- Method [OdfDocument.SaveAsync](/api/open-document/officeimo-opendocument-odfdocument/#method-saveasync-threading-cancellationtoken)
- Method [OdfDocument.SaveCopy](/api/open-document/officeimo-opendocument-odfdocument/#method-savecopy-string-officeimo-opendocument-odfsaveoptions)
- Method [OdfDocument.SaveCopyAsync](/api/open-document/officeimo-opendocument-odfdocument/#method-savecopyasync-string-officeimo-opendocument-odfsaveoptions-threading-cancellationtoken)
- Method [OdfDocument.SaveFlatXml](/api/open-document/officeimo-opendocument-odfdocument/#method-saveflatxml-string)
- Method [OdfDocument.Serialize](/api/open-document/officeimo-opendocument-odfdocument/#method-serialize-officeimo-opendocument-odfsaveoptions)
- Method [OdgDocument.Save](/api/open-document/officeimo-opendocument-odgdocument/#method-save-odfsaveoptions)
- Method [OdgDocument.SaveAsync](/api/open-document/officeimo-opendocument-odgdocument/#method-saveasync-stream-odfsaveoptions-cancellationtoken)
- Method [OdgDocument.SaveCopy](/api/open-document/officeimo-opendocument-odgdocument/#method-savecopy-string-odfsaveoptions)
- Method [OdgDocument.SaveCopyAsync](/api/open-document/officeimo-opendocument-odgdocument/#method-savecopyasync-string-odfsaveoptions-cancellationtoken)
- Method [OdgDocument.SaveFlatXml](/api/open-document/officeimo-opendocument-odgdocument/#method-saveflatxml-stream)
- Method [OdgDocument.Serialize](/api/open-document/officeimo-opendocument-odgdocument/#method-serialize-odfsaveoptions)
- Method [OdpPresentation.Save](/api/open-document/officeimo-opendocument-odppresentation/#method-save-stream-odfsaveoptions)
- Method [OdpPresentation.SaveAsync](/api/open-document/officeimo-opendocument-odppresentation/#method-saveasync-stream-odfsaveoptions-cancellationtoken)
- Method [OdpPresentation.SaveCopy](/api/open-document/officeimo-opendocument-odppresentation/#method-savecopy-string-odfsaveoptions)
- Method [OdpPresentation.SaveCopyAsync](/api/open-document/officeimo-opendocument-odppresentation/#method-savecopyasync-string-odfsaveoptions-cancellationtoken)
- Method [OdpPresentation.SaveFlatXml](/api/open-document/officeimo-opendocument-odppresentation/#method-saveflatxml-stream)
- Method [OdpPresentation.Serialize](/api/open-document/officeimo-opendocument-odppresentation/#method-serialize-odfsaveoptions)
- Method [OdsDocument.Save](/api/open-document/officeimo-opendocument-odsdocument/#method-save-odfsaveoptions)
- Method [OdsDocument.SaveAsync](/api/open-document/officeimo-opendocument-odsdocument/#method-saveasync-string-odfsaveoptions-cancellationtoken)
- Method [OdsDocument.SaveCopy](/api/open-document/officeimo-opendocument-odsdocument/#method-savecopy-string-odfsaveoptions)
- Method [OdsDocument.SaveCopyAsync](/api/open-document/officeimo-opendocument-odsdocument/#method-savecopyasync-string-odfsaveoptions-cancellationtoken)
- Method [OdsDocument.SaveFlatXml](/api/open-document/officeimo-opendocument-odsdocument/#method-saveflatxml-stream)
- Method [OdsDocument.Serialize](/api/open-document/officeimo-opendocument-odsdocument/#method-serialize-odfsaveoptions)
- Method [OdtDocument.Save](/api/open-document/officeimo-opendocument-odtdocument/#method-save-odfsaveoptions)
- Method [OdtDocument.SaveAsync](/api/open-document/officeimo-opendocument-odtdocument/#method-saveasync-stream-odfsaveoptions-cancellationtoken)
- Method [OdtDocument.SaveCopy](/api/open-document/officeimo-opendocument-odtdocument/#method-savecopy-string-odfsaveoptions)
- Method [OdtDocument.SaveCopyAsync](/api/open-document/officeimo-opendocument-odtdocument/#method-savecopyasync-string-odfsaveoptions-cancellationtoken)
- Method [OdtDocument.SaveFlatXml](/api/open-document/officeimo-opendocument-odtdocument/#method-saveflatxml-stream)
- Method [OdtDocument.Serialize](/api/open-document/officeimo-opendocument-odtdocument/#method-serialize-odfsaveoptions)

Filter members 

Show inherited

## Methods

`public byte[] RequireValue()` [#](#method-requirevalue)

[OdfSaveResult.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfSaveResult.cs#L22)

Returns the serialized bytes.

Returns

`byte[]`

`public void ThrowIfLoss()` [#](#method-throwifloss)

[OdfSaveResult.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfSaveResult.cs#L26)

Returns the serialized bytes or throws when the save removed or lossily projected content.

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public byte[] Value { get; }` [#](#property-value)

[OdfSaveResult.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfSaveResult.cs#L13)

The exact bytes produced by the save operation.

`public OdfSaveReport Report { get; }` [#](#property-report)

[OdfSaveResult.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfSaveResult.cs#L16)

Entries rewritten, copied, removed, or projected with loss.

`public bool HasLoss { get; }` [#](#property-hasloss)

[OdfSaveResult.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfSaveResult.cs#L19)

True when the selected output form could not preserve every source entry losslessly.

<!-- PowerForge markdown artifact sha256:5A34C92DE36BCD68CF36FB9AF2BAE2BFAFC686F300C2D7C93648B060F57E81B0 -->
