[]
Represents options for saving a workbook.
Use this class to configure workbook export behavior such as compact mode and formula handling when calling legacy save overloads.
public class SaveOptions
Public Class SaveOptions
SaveOptions options = new SaveOptions();
options.IgnoreFormulas = true;
options.IsCompactMode = true;
bool ignoreFormulas = options.IgnoreFormulas;
bool compactMode = options.IsCompactMode;
workbook.Save("path/to/output.xlsx", options);
| Name | Description |
|---|---|
| SaveOptions() | Constructor. |
| Name | Description |
|---|---|
| IgnoreFormulas | Gets or sets whether formula cells are treated as value cells when saving the workbook. When this property is true, formula cells are exported as value cells instead of preserving their formulas. |
| IsCompactMode | Gets or sets whether to save the workbook in compact mode. When this property is true, the generated workbook content is written in a more compact form. The default value is false. |