java中,导出word,一般是可以先用word 做好模版,然后另存为mht网页文件,然后
利用freemaker中做标记,再用 java 程序填充,但要注意,保存为网页文件后,要改下编码,
<head>
<meta http-equiv=3DContent-Type content=3D"text/html; charset=gb2312">
<meta name=3DProgId content=3DWord.Document>
<meta name=3DGenerator content=3D"Microsoft Word 12">
<meta name=3DOriginator content=3D"Microsoft Word 12">
<link rel=3DFile-List href=3D"internaljudge_report1.files/filelist.xml">
<link rel=3DEdit-Time-Data href=3D"internaljudge_report1.files/editdata.mso=
">
<!--[if !mso]>
<style>