I have an export to excel using js-xlsx and the function utils.json_to_sheet.
Problem is I have another json object that I want to export to the same sheet, right below the previous one.
XLSX.utils.json_to_sheet(outputData);
Tried to find anything about it in docs and so, but seems like no one had that issue. A similar question was asked a while ago with no answer unfortunately - How to add multiple table with different data-set to the same sheet in exceljs . Any ideas?
I ended up talking with xlsx support over the mail and they gave me the answer. There is a function called sheet_add_json.
Simple example:
XLSX.utils.sheet_add_json(sheet, secondJson, { skipHeader: true, origin: "A" + (firstJson.length + 3) });
More examples: