archonLing
发贴: 57
积分: 10
|
于 2003-09-23 10:09
lwwbill wrote: 如何在JSP中倒出Excel,又怎么样更改Excel的表头字段名?谢谢
There is open source product call ExcelRead. It is pretty good for both reading & writing excel output.
You could also try to trick the brower to load the data in excel by setting page mime type to excel on top of your page. Ex:
response.setContentType("application/vnd.ms-excel"); response.setHeader("Content-disposition", "attachment;filename=test.xls");
It is quick & dirty want to do export to excel. LOL...
|