1

I am looking for the possibility of creating an excel file from a query that a user may generate on our database, so that the user can download it.

Currently we have results displaying to the GUI, but I am wondering what is the best way to create the excel file with the data returned. I'm using a MySQL DB, java JAxRS, JavaScript & html5.

Any suggestions are very welcome.

4

2 回答 2

2

As javadev mentioned, Apache POI is one of the best approach I would also suggest. Here is an example code that suits your requirement. Hope this would help.

于 2013-03-30T22:48:08.463 回答
1

I highly recommand to use Apache POI API

Here is a good tutorial to start.

于 2013-03-30T22:15:39.897 回答