How to read an excel file contents on client side?

前端 未结 5 1800
小蘑菇
小蘑菇 2020-11-30 05:13

From the JSP page, I need to browse excel file and after selecting file on system, I need to read that excel file contents and fill my form.

Currently I have tried

5条回答
  •  执笔经年
    2020-11-30 05:51

    You can load and open the file client side in most modern browsers using the HTML5 File API

    Once you have loaded the file you can parse the contents with a library that supports certain excel output formats (such as csv / xlsx).

    Here are a couple of options...

    • CSV
    • XLSX / CSV / XML

提交回复
热议问题