Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Commit

Permalink
Update booktype to recent excel version
Browse files Browse the repository at this point in the history
  • Loading branch information
lakhassane committed Mar 9, 2021
1 parent 4039d35 commit 6c8529a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Adaptor.js
Expand Up @@ -196,7 +196,7 @@ function submitXls(formData, params) {

const buffer = _xlsx.default.write(workbook, {
type: 'buffer',
bookType: 'biff5'
bookType: 'xlsx'
}); // xlsx.writeFile(workbook, 'out.xls'); // If needing to write to filesystem


Expand Down
2 changes: 1 addition & 1 deletion src/Adaptor.js
Expand Up @@ -104,7 +104,7 @@ export function submitXls(formData, params) {
xlsx.utils.book_append_sheet(workbook, worksheet, ws_name);

// Generate buffer
const buffer = xlsx.write(workbook, { type: 'buffer', bookType: 'biff5' });
const buffer = xlsx.write(workbook, { type: 'buffer', bookType: 'xlsx' });
// xlsx.writeFile(workbook, 'out.xls'); // If needing to write to filesystem

const data = new FormData();
Expand Down

0 comments on commit 6c8529a

Please sign in to comment.