用 POI 试试。使用 HttpServletResponse 进行输出:
String filename = "words.doc";
p_response.setContentType("application/msword");
p_response.setHeader("Content-disposition",
"Attachment; filename=" + filename);
相关参考:
http://tkgospodinov.com/writing-microsoft-word-documents-in-java-with-apache-poi/
String filename = "words.doc";
p_response.setContentType("application/msword");
p_response.setHeader("Content-disposition",
"Attachment; filename=" + filename);
相关参考:
http://tkgospodinov.com/writing-microsoft-word-documents-in-java-with-apache-poi/
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货