[]
        
(Showing Draft Content)

XltxSaveOptions

Class XltxSaveOptions


public class XltxSaveOptions extends XlsxSaveOptions
Represents options for saving a workbook as an XLTX template file.

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);
 
  • Constructor Details

    • XltxSaveOptions

      public XltxSaveOptions()
      Constructs a new XltxSaveOptions 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);