我使用 exceljs 节点模块并添加下拉数据验证
worksheet.getCell(cell).dataValidation = {
type: 'list',
allowBlank: true,
formulae: ['"One,Two,Three,Four"'],
showErrorMessage: true,
errorStyle: 'error',
errorTitle: 'Error',
error: 'Value must be in the list'
};
文件成功生成。但它只能使用 Libre Office 打开。用Office女士打开文件会出现如下错误:
Excel completed file level validation and repair.
Some parts of this workbook mau have been repaired or discarded.
Repaired Part: /xl/worksheets/sheet1.xml part.
如何解决这个问题呢?