[]
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);
getDigitalSignatureOnly, getDoNotAutoFitAfterOpened, getDoNotRecalculateAfterOpened, getImportFlags, getInvalidFormulaHandling, getPassword, setDigitalSignatureOnly, setDoNotAutoFitAfterOpened, setDoNotRecalculateAfterOpened, setImportFlags, setInvalidFormulaHandling, setPasswordgetFileFormat, setFileFormatXltxOpenOptions 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);