I have created an excel spreadsheet using the Excel4node library and then filled out this spreadsheet with the necessary data.
var excel = require('excel4node');
var workbook = new excel.Workbook();
var worksheet = workbook.addWorksheet('Sheet 1');
I then want the user to be able to download this spreadsheet and open it in Microsoft Excel.
workbook.write("Excel.xlsx", res);
This code works in the FireFox browser, however no download is prompted in Google Chrome or Microsoft Edge. Can anyone help me fix this issue? Any help would be much appreciated!