[]
Gets or sets whether to save the workbook in compact mode.
When this option is true, the generated .xlsx content is written in a more compact form. The default value is false.
public bool IsCompactMode { get; set; }
Public Property IsCompactMode As Boolean
XlsxSaveOptions options = new XlsxSaveOptions();
options.IsCompactMode = true;
bool compactMode = options.IsCompactMode;
workbook.Save("path/to/output.xlsx", options);