[]
        
(Showing Draft Content)

XltxOpenOptions

Class XltxOpenOptions


public class XltxOpenOptions extends XlsxOpenOptions
Represents options for opening an XLTX template file.

This class inherits the available XLSX open-option settings from XlsxOpenOptions, such as password, import flags, recalculation behavior, auto-fit behavior, and digital signature behavior, and uses OpenFileFormat.Xltx as the target format.


 XltxOpenOptions options = new XltxOpenOptions();
 String password = getWorkbookPassword();
 options.setPassword(password);
 workbook.open("path/to/template.xltx", options);
 
  • Constructor Details

    • XltxOpenOptions

      public XltxOpenOptions()
      Constructs a new XltxOpenOptions object.

      Initializes open options for importing an XLTX template file and sets the file format to OpenFileFormat.Xltx.

      
       XltxOpenOptions options = new XltxOpenOptions();
       options.setDoNotRecalculateAfterOpened(true);
       workbook.open("path/to/template.xltx", options);