[]
This class inherits the XLSX-related save settings provided by XlsxSaveOptions and uses SaveFileFormat.Xltx as the target format when workbook content is saved as an Excel template.
XltxSaveOptions options = new XltxSaveOptions();
SaveFileFormat fileFormat = options.getFileFormat();
workbook.save("path/to/output.xltx", options);
getExcludeEmptyRegionCells, getExcludeUnusedNames, getExcludeUnusedStyles, getExportSharedFormula, getIgnoreFormulas, getIncludeAutoMergedCells, getIncludeBindingSource, getIsCompactMode, getPassword, setExcludeEmptyRegionCells, setExcludeUnusedNames, setExcludeUnusedStyles, setExportSharedFormula, setIgnoreFormulas, setIncludeAutoMergedCells, setIncludeBindingSource, setIsCompactMode, setPassword, toStringgetFileFormat, setFileFormatXltxSaveOptions object.This constructor creates an options object for saving a workbook as an SaveFileFormat.Xltx template file.
XltxSaveOptions options = new XltxSaveOptions();
options.setExcludeUnusedStyles(true);
options.setIgnoreFormulas(true);
workbook.save("path/to/output.xltx", options);