I tried using this but not working. How to achieve it? I want to download in the browser. window.open("data:application/vnd.ms-excel;base64," + string);
Also... My PDF is not opening in IE data:application/PDF;base64,
Working in Chrome.
I tried using this but not working. How to achieve it? I want to download in the browser. window.open("data:application/vnd.ms-excel;base64," + string);
Also... My PDF is not opening in IE data:application/PDF;base64,
Working in Chrome.
I have used this with great success: https://github.com/eligrey/FileSaver.js/
I've also used xlsx-js.js to create xlsx files in the browser and then download: https://github.com/SheetJS/js-xlsx
You do not need node.js for either one, you can use both libraries in the browser.