ahmed salah

ahmed salah

  • 1.1k
  • 637
  • 40.7k

why JavaScript code export to excel working with old office extension

May 16 2024 9:29 PM

I working on export html table to excel using JAVASCRIPT . I face issue it not export to excel office New version with extension xlsx .

but it working fine and export to old version office excel with extension xls .

when export from html table to excel new version with xlsx extension it give me error

cannot open file `.xlsx` because file extension is not valid or file corrupted .

so How to solve this issue to working with xlsx extension and open new version excel .

code for html and javascript that not export to excel new version xlsx

when debug var table it give me html table script as fiddle below so How to export to excel xlsx New version

html table generated by var table from debug 


Answers (2)