[]
        
(Showing Draft Content)

XlsmSaveOptions

Class XlsmSaveOptions


public class XlsmSaveOptions extends XlsxSaveOptions
Represents options for saving a workbook as an XLSM file.

This class inherits the XLSX-related save settings provided by XlsxSaveOptions, such as password protection, formula handling, shared formula export, and excluding unused content, and uses SaveFileFormat.Xlsm as the target format.


 XlsmSaveOptions options = new XlsmSaveOptions();
 String password = getWorkbookPassword();
 options.setPassword(password);
 options.setIgnoreFormulas(true);
 workbook.save("path/to/output.xlsm", options);
 
  • Constructor Details

    • XlsmSaveOptions

      public XlsmSaveOptions()
      Constructs a new XlsmSaveOptions object.

      Creates save options for exporting a workbook as an XLSM file. The file format is initialized to SaveFileFormat.Xlsm, and the returned options object can be further configured and passed to Workbook.save(String,SaveOptionsBase).

      
       XlsmSaveOptions options = new XlsmSaveOptions();
       String password = getWorkbookPassword();
       options.setPassword(password);
       workbook.save("path/to/file.xlsm", options);