0

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.

George Kagan
  • 5,913
  • 8
  • 46
  • 50
mahendramaid
  • 25
  • 10

1 Answers1

0

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.

splitwire
  • 303
  • 1
  • 5