---
Product: Aspose.Cells
Platform: cpp
Page Type: reference
Canonical URL: https://reference.aspose.org/cells/cpp/saveoptions
---

# SaveOptions

## Overview

`SaveOptions` is a class in Aspose.Cells FOSS for C++.

Specifies how a workbook should be saved.

This class declares 10 methods for SaveOptions objects in C++ programs.
Available methods include: `GetCompactStyles`, `GetPreserveRecoveryMetadata`, `GetSaveFormat`, `GetUseSharedStrings`, `GetValidateBeforeSave`, `SetCompactStyles`, `SetPreserveRecoveryMetadata`, `SetSaveFormat`, `SetUseSharedStrings`, `SetValidateBeforeSave`.
Public members are accessible to any C++ application after installing the Aspose.Cells FOSS for C++ package.

## Methods

| Signature | Description |
|-----------|-------------|
| `GetSaveFormat()` → `SaveFormat` | Gets or sets the output file format. |
| `SetSaveFormat(value: SaveFormat)` | Sets the save format value. |
| `GetUseSharedStrings()` → `bool` | Gets or sets whether shared strings should be used for string cells. |
| `SetUseSharedStrings(value: bool)` | Sets the use shared strings value. |
| `GetValidateBeforeSave()` → `bool` | Gets or sets whether the workbook should be validated before save. |
| `SetValidateBeforeSave(value: bool)` | Sets the validate before save value. |
| `GetCompactStyles()` → `bool` | Gets or sets whether equivalent styles should be compacted during save. |
| `SetCompactStyles(value: bool)` | Sets the compact styles value. |
| `GetPreserveRecoveryMetadata()` → `bool` | Gets or sets whether recovery metadata should be preserved in the saved workbook. |
| `SetPreserveRecoveryMetadata(value: bool)` | Sets the preserve recovery metadata value. |

## See Also

- [Aspose.Cells — Enterprise API Reference](https://reference.aspose.com/cells/)