Add xlsx format to Spreadsheet-Node

This commit is contained in:
Jan Oberhauser 2020-04-14 15:38:15 +02:00
parent 105858cb36
commit 524a8e62c9

View file

@ -133,6 +133,11 @@ export class SpreadsheetFile implements INodeType {
value: 'xls', value: 'xls',
description: 'Excel', description: 'Excel',
}, },
{
name: 'XLSX',
value: 'xlsx',
description: 'Excel',
},
], ],
default: 'xls', default: 'xls',
displayOptions: { displayOptions: {
@ -236,6 +241,7 @@ export class SpreadsheetFile implements INodeType {
'/fileFormat': [ '/fileFormat': [
'ods', 'ods',
'xls', 'xls',
'xlsx',
], ],
}, },
}, },
@ -338,6 +344,8 @@ export class SpreadsheetFile implements INodeType {
wopts.bookType = 'ods'; wopts.bookType = 'ods';
} else if (fileFormat === 'xls') { } else if (fileFormat === 'xls') {
wopts.bookType = 'xls'; wopts.bookType = 'xls';
} else if (fileFormat === 'xlsx') {
wopts.bookType = 'xlsx';
} }
// Convert the data in the correct format // Convert the data in the correct format