Create Excel file in Java

前端 未结 10 723
予麋鹿
予麋鹿 2020-12-02 15:23

I want to create an Excel file and write data just like writing a text file with Java. I tried to change file extension from .txt to .xls. But I wa

10条回答
  •  孤街浪徒
    2020-12-02 16:07

    I used also JXLS: it receives the data as a Map and a template EXCEL with the correct syntax and return the file correctly populated. The data in every cell must be a JavaBean with visibility public.

    It not worws if you must insert data in more than 1 sheet: in this case I used POI.

提交回复
热议问题