要求:EXCEL在服务器端生成,以输出流的形式传到客户端下载
------解决方案--------------------
转: http://www.chinasolaris.org/bbs/messages/f-11-t-5.html
--------
jxl.write.WritableWorkbook wwb = jxl.Workbook.createWorkbook(new java.io.File( "d:/blog_c06_net.xls "));//d:/blog_c06_net.xls是文件路径
jxl.write.WritableSheet ws = wwb.createSheet( "工作表 ", 0);
int rows=0;//行
int step=0;//列
ws.addCell(new jxl.write.Label(step, rows, "第六世纪 "));
ws.addCell(new jxl.write.Number(step + 1, rows, 963));
wwb.write();
wwb.close();