# SaveOptions Class

> SaveOptions class in the TX Sheet Control .NET API: Reusable save settings shared across file and byte destinations. Metadata is export-only.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Class
- **Namespace:** `TXTextControl.TXSheetControl.Server`
- **Package:** `TXTextControl.TXSheetControl.Server` (assembly `TXTextControl.TXSheetControl.Api.dll`, from the private NuGet feed or the supplied NuGet folder)
- **Package:** `TXTextControl.TXSheetControl.Blazor` (assembly `TXTextControl.TXSheetControl.Api.dll`, from the private NuGet feed or the supplied NuGet folder)
- **Derived:** `TXTextControl.TXSheetControl.Server.TabularSaveOptions`
- **Path:** TX Sheet Control > API Reference > .NET API > TXTextControl.TXSheetControl.Server > SaveOptions Class
- **1145 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/saveoptions/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/saveoptions/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/saveoptions/llms-full.txt

---

Reusable save settings shared across file and byte destinations. Metadata is export-only.

### Syntax

```csharp
public class SaveOptions
```

### Members

#### Constructors

| Constructor | Description |
|---|---|
| [Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/saveoptions/constructor/llms-full.txt) |  |

#### Properties

| Property | Description |
|---|---|
| [DocumentProperties](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/saveoptions/documentproperties-property/llms-full.txt) |  |
| [InternalWorkbookFormat](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/saveoptions/internalworkbookformat-property/llms-full.txt) |  |
| [OmitDashboards](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/saveoptions/omitdashboards-property/llms-full.txt) | Explicitly allow worksheet-only XLSX/PDF/tabular export when interactive dashboards are present. |
| [Pdf](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/saveoptions/pdf-property/llms-full.txt) |  |
| [SpreadsheetML](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/saveoptions/spreadsheetml-property/llms-full.txt) |  |

### Examples

Apply SaveOptions to a small working document, then return the exported bytes. The caller can save or download the result.

```csharp
using TXTextControl.TXSheetControl.Server;

async Task<byte[]> CreateSaveOptionsReportAsync(ServerSheetControl control)
{
    var book = control.Workbook;
    var sheet = await book.Sheets.AtAsync(0);
    await sheet.Cell("B8").SetValueAsync(120);
    await sheet.Cell("B9").SetValueAsync(80);
    await sheet.Cell("B10").SetFormulaAsync("=SUM(B8:B9)");
    await sheet.Cell("A1").SetTextAsync("October invoice");
    await sheet.Cell("A1").FormatAsync(new { fontFamily = "Liberation Sans", fontSize = 16, bold = true, textColor = "#ffffff", fillColor = "#163b63" });
    await sheet.Range("B8:B10").FormatAsync(new { numberFormatCode = "#,##0.00", fontFamily = "Liberation Sans", fontSize = 11 });

    var settings = new SaveOptions();
    return await control.SaveAsync(StreamType.PDF, settings);
}
```

### See Also

- [TXTextControl.TXSheetControl.Server Namespace](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/llms-full.txt)
- [Loading and Saving Workbooks](https://docs.textcontrol.com/tx-sheet-control/document-processing/load-save/llms-full.txt)
- [OpenDocumentSpreadsheet](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/saveoptions/opendocumentspreadsheet-property/llms-full.txt): format-specific ODS settings.
- [Fonts](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/saveoptions/fonts-property/llms-full.txt): document font bytes and substitution policy.
- [EmbedUsedFonts](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/saveoptions/embedusedfonts-property/llms-full.txt): Include resolved font bytes in the exported workbook.

---

## In This Section

- [SaveOptions Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/saveoptions/constructor/llms-full.txt): SaveOptions constructor in the TX Sheet Control .NET API, with its syntax, a C# example and remarks on awaiting tasks and handles.
- [SaveOptions.DocumentProperties Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/saveoptions/documentproperties-property/llms-full.txt): SaveOptions.DocumentProperties property in the TX Sheet Control .NET API, with its type DocumentProperties? and a C# example.
- [SaveOptions.EmbedUsedFonts Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/saveoptions/embedusedfonts-property/llms-full.txt): SaveOptions.EmbedUsedFonts property in the .NET API: Includes resolved font files in an exported workbook without changing the document; defaults to false.
- [SaveOptions.Fonts Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/saveoptions/fonts-property/llms-full.txt): SaveOptions.Fonts property in the TX Sheet Control .NET API: Font bytes and substitutions for this load or save, supplied right before LoadAsync or SaveAsync.
- [SaveOptions.InternalWorkbookFormat Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/saveoptions/internalworkbookformat-property/llms-full.txt): SaveOptions.InternalWorkbookFormat property in the TX Sheet Control .NET API, with its type NativeSaveOptions? and a C# example.
- [SaveOptions.OmitDashboards Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/saveoptions/omitdashboards-property/llms-full.txt): SaveOptions.OmitDashboards property in the .NET API: Explicitly allow worksheet-only XLSX/PDF/tabular export when interactive dashboards are present.
- [SaveOptions.OpenDocumentSpreadsheet Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/saveoptions/opendocumentspreadsheet-property/llms-full.txt): SaveOptions.OpenDocumentSpreadsheet property in the TX Sheet Control .NET API: ODS settings for SaveAsync; see OpenDocumentSpreadsheetSaveOptions.
- [SaveOptions.Pdf Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/saveoptions/pdf-property/llms-full.txt): SaveOptions.Pdf property in the TX Sheet Control .NET API, with its syntax, its type PdfOptions?, a C# example and remarks on awaiting tasks and handles.
- [SaveOptions.SpreadsheetML Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/saveoptions/spreadsheetml-property/llms-full.txt): SaveOptions.SpreadsheetML property in the TX Sheet Control .NET API, with its syntax, its type XlsxExportOptions? and a C# example.

---

## Nearby

- **Previous:** [Range.UnmergeAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/range/unmergeasync-method/llms-full.txt)
- **Next:** [SaveOptions Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/saveoptions/constructor/llms-full.txt)
