[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.SaveOptions

SaveOptions Class

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.

Inheritance
SaveOptions
Namespace: GrapeCity.Documents.Excel
Assembly: DS.Documents.Excel.dll
Syntax
public class SaveOptions
Public Class SaveOptions
Examples
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);

Constructors

Name Description
SaveOptions()

Constructor.

Properties

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.