freemarker导出word

    工作中遇到需要导出word的要求,特此记录下来,以便以后查看。这次导出word,是采用的freemarker模板的方式进行导出的,个人感觉比较方便。

    具体步骤

1.新建word根据所需要的格式,进行编辑

2.把word另存为xml。

3.用firstobject打开xml文件,或者任意编辑器。这里用firstobject是因为他有自动格式化功能

用notepad打开是这样的

用firstobject打开之后按F8之后就能变成这样


然后保存,再用notepad打开就好了。notepad有高亮显示很方便

4.然后对需要获取值的地方进行修改比如序号换成${index},题目位置改为${stem},如果是集合的话可以进行遍历,具体用法参考freemarker标签用法

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?mso-application progid="Word.Document"?>
<w:wordDocument xmlns:aml="http://schemas.microsoft.com/aml/2001/core" xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml" xmlns:wx="http://schemas.microsoft.com/office/word/2003/auxHint" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" xmlns:wsp="http://schemas.microsoft.com/office/word/2003/wordml/sp2" xmlns:sl="http://schemas.microsoft.com/schemaLibrary/2003/core" w:macrosPresent="no" w:embeddedObjPresent="no" w:ocxPresent="no" xml:space="preserve">
<w:ignoreSubtree w:val="http://schemas.microsoft.com/office/word/2003/wordml/sp2"/>
<o:DocumentProperties>
<o:Author>ivviw</o:Author>
<o:LastAuthor>ivviw</o:LastAuthor>
<o:Revision>28</o:Revision>
<o:TotalTime>47</o:TotalTime>
<o:Created>2018-05-24T03:08:00Z</o:Created>
<o:LastSaved>2018-05-24T11:50:00Z</o:LastSaved>
<o:Pages>1</o:Pages>
<o:Words>11</o:Words>
<o:Characters>69</o:Characters>
<o:Company>Microsoft</o:Company>
<o:Lines>1</o:Lines>
<o:Paragraphs>1</o:Paragraphs>
<o:CharactersWithSpaces>79</o:CharactersWithSpaces>
<o:Version>15</o:Version>
</o:DocumentProperties>
<w:fonts>
<w:defaultFonts w:ascii="Calibri" w:fareast="宋体" w:h-ansi="Calibri" w:cs="Times New Roman"/>
<w:font w:name="Times New Roman">
<w:panose-1 w:val="02020603050405020304"/>
<w:charset w:val="00"/>
<w:family w:val="Roman"/>
<w:pitch w:val="variable"/>
<w:sig w:usb-0="E0002AFF" w:usb-1="C0007841" w:usb-2="00000009" w:usb-3="00000000" w:csb-0="000001FF" w:csb-1="00000000"/>
</w:font>
<w:font w:name="宋体">
<w:altName w:val="SimSun"/>
<w:panose-1 w:val="02010600030101010101"/>
<w:charset w:val="86"/>
<w:family w:val="auto"/>
<w:pitch w:val="variable"/>
<w:sig w:usb-0="00000003" w:usb-1="288F0000" w:usb-2="00000016" w:usb-3="00000000" w:csb-0="00040001" w:csb-1="00000000"/>
</w:font>
<w:font w:name="Cambria Math">
<w:panose-1 w:val="02040503050406030204"/>
<w:charset w:val="01"/>
<w:family w:val="Roman"/>
<w:notTrueType/>
<w:pitch w:val="variable"/>
</w:font>
<w:font w:name="Calibri Light">
<w:panose-1 w:val="020F0302020204030204"/>
<w:charset w:val="00"/>
<w:family w:val="Swiss"/>
<w:pitch w:val="variable"/>
<w:sig w:usb-0="A00002EF" w:usb-1="4000207B" w:usb-2="00000000" w:usb-3="00000000" w:csb-0="0000019F" w:csb-1="00000000"/>
</w:font>
<w:font w:name="Calibri">
<w:panose-1 w:val="020F0502020204030204"/>
<w:charset w:val="00"/>
<w:family w:val="Swiss"/>
<w:pitch w:val="variable"/>
<w:sig w:usb-0="E00002FF" w:usb-1="4000ACFF" w:usb-2="00000001" w:usb-3="00000000" w:csb-0="0000019F" w:csb-1="00000000"/>
</w:font>
<w:font w:name="@宋体">
<w:panose-1 w:val="02010600030101010101"/>
<w:charset w:val="86"/>
<w:family w:val="auto"/>
<w:pitch w:val="variable"/>
<w:sig w:usb-0="00000003" w:usb-1="288F0000" w:usb-2="00000016" w:usb-3="00000000" w:csb-0="00040001" w:csb-1="00000000"/>
</w:font>
</w:fonts>
<w:styles>
<w:versionOfBuiltInStylenames w:val="7"/>
<w:latentStyles w:defLockedState="off" w:latentStyleCount="371">
<w:lsdException w:name="Normal"/>
<w:lsdException w:name="heading 1"/>
<w:lsdException w:name="heading 2"/>
<w:lsdException w:name="heading 3"/>
<w:lsdException w:name="heading 4"/>
<w:lsdException w:name="heading 5"/>
<w:lsdException w:name="heading 6"/>
<w:lsdException w:name="heading 7"/>
<w:lsdException w:name="heading 8"/>
<w:lsdException w:name="heading 9"/>
<w:lsdException w:name="caption"/>
<w:lsdException w:name="Title"/>
<w:lsdException w:name="Subtitle"/>
<w:lsdException w:name="Strong"/>
<w:lsdException w:name="Emphasis"/>
<w:lsdException w:name="Normal Table"/>
<w:lsdException w:name="Table Simple 1"/>
<w:lsdException w:name="Table Simple 2"/>
<w:lsdException w:name="Table Simple 3"/>
<w:lsdException w:name="Table Classic 1"/>
<w:lsdException w:name="Table Classic 2"/>
<w:lsdException w:name="Table Classic 3"/>
<w:lsdException w:name="Table Classic 4"/>
<w:lsdException w:name="Table Colorful 1"/>
<w:lsdException w:name="Table Colorful 2"/>
<w:lsdException w:name="Table Colorful 3"/>
<w:lsdException w:name="Table Columns 1"/>
<w:lsdException w:name="Table Columns 2"/>
<w:lsdException w:name="Table Columns 3"/>
<w:lsdException w:name="Table Columns 4"/>
<w:lsdException w:name="Table Columns 5"/>
<w:lsdException w:name="Table Grid 1"/>
<w:lsdException w:name="Table Grid 2"/>
<w:lsdException w:name="Table Grid 3"/>
<w:lsdException w:name="Table Grid 4"/>
<w:lsdException w:name="Table Grid 5"/>
<w:lsdException w:name="Table Grid 6"/>
<w:lsdException w:name="Table Grid 7"/>
<w:lsdException w:name="Table Grid 8"/>
<w:lsdException w:name="Table List 1"/>
<w:lsdException w:name="Table List 2"/>
<w:lsdException w:name="Table List 3"/>
<w:lsdException w:name="Table List 4"/>
<w:lsdException w:name="Table List 5"/>
<w:lsdException w:name="Table List 6"/>
<w:lsdException w:name="Table List 7"/>
<w:lsdException w:name="Table List 8"/>
<w:lsdException w:name="Table 3D effects 1"/>
<w:lsdException w:name="Table 3D effects 2"/>
<w:lsdException w:name="Table 3D effects 3"/>
<w:lsdException w:name="Table Contemporary"/>
<w:lsdException w:name="Table Elegant"/>
<w:lsdException w:name="Table Professional"/>
<w:lsdException w:name="Table Subtle 1"/>
<w:lsdException w:name="Table Subtle 2"/>
<w:lsdException w:name="Table Web 1"/>
<w:lsdException w:name="Table Web 2"/>
<w:lsdException w:name="Table Web 3"/>
<w:lsdException w:name="Table Theme"/>
<w:lsdException w:name="No Spacing"/>
<w:lsdException w:name="Light Shading"/>
<w:lsdException w:name="Light List"/>
<w:lsdException w:name="Light Grid"/>
<w:lsdException w:name="Medium Shading 1"/>
<w:lsdException w:name="Medium Shading 2"/>
<w:lsdException w:name="Medium List 1"/>
<w:lsdException w:name="Medium List 2"/>
<w:lsdException w:name="Medium Grid 1"/>
<w:lsdException w:name="Medium Grid 2"/>
<w:lsdException w:name="Medium Grid 3"/>
<w:lsdException w:name="Dark List"/>
<w:lsdException w:name="Colorful Shading"/>
<w:lsdException w:name="Colorful List"/>
<w:lsdException w:name="Colorful Grid"/>
<w:lsdException w:name="Light Shading Accent 1"/>
<w:lsdException w:name="Light List Accent 1"/>
<w:lsdException w:name="Light Grid Accent 1"/>
<w:lsdException w:name="Medium Shading 1 Accent 1"/>
<w:lsdException w:name="Medium Shading 2 Accent 1"/>
<w:lsdException w:name="Medium List 1 Accent 1"/>
<w:lsdException w:name="List Paragraph"/>
<w:lsdException w:name="Quote"/>
<w:lsdException w:name="Intense Quote"/>
<w:lsdException w:name="Medium List 2 Accent 1"/>
<w:lsdException w:name="Medium Grid 1 Accent 1"/>
<w:lsdException w:name="Medium Grid 2 Accent 1"/>
<w:lsdException w:name="Medium Grid 3 Accent 1"/>
<w:lsdException w:name="Dark List Accent 1"/>
<w:lsdException w:name="Colorful Shading Accent 1"/>
<w:lsdException w:name="Colorful List Accent 1"/>
<w:lsdException w:name="Colorful Grid Accent 1"/>
<w:lsdException w:name="Light Shading Accent 2"/>
<w:lsdException w:name="Light List Accent 2"/>
<w:lsdException w:name="Light Grid Accent 2"/>
<w:lsdException w:name="Medium Shading 1 Accent 2"/>
<w:lsdException w:name="Medium Shading 2 Accent 2"/>
<w:lsdException w:name="Medium List 1 Accent 2"/>
<w:lsdException w:name="Medium List 2 Accent 2"/>
<w:lsdException w:name="Medium Grid 1 Accent 2"/>
<w:lsdException w:name="Medium Grid 2 Accent 2"/>
<w:lsdException w:name="Medium Grid 3 Accent 2"/>
<w:lsdException w:name="Dark List Accent 2"/>
<w:lsdException w:name="Colorful Shading Accent 2"/>
<w:lsdException w:name="Colorful List Accent 2"/>
<w:lsdException w:name="Colorful Grid Accent 2"/>
<w:lsdException w:name="Light Shading Accent 3"/>
<w:lsdException w:name="Light List Accent 3"/>
<w:lsdException w:name="Light Grid Accent 3"/>
<w:lsdException w:name="Medium Shading 1 Accent 3"/>
<w:lsdException w:name="Medium Shading 2 Accent 3"/>
<w:lsdException w:name="Medium List 1 Accent 3"/>
<w:lsdException w:name="Medium List 2 Accent 3"/>
<w:lsdException w:name="Medium Grid 1 Accent 3"/>
<w:lsdException w:name="Medium Grid 2 Accent 3"/>
<w:lsdException w:name="Medium Grid 3 Accent 3"/>
<w:lsdException w:name="Dark List Accent 3"/>
<w:lsdException w:name="Colorful Shading Accent 3"/>
<w:lsdException w:name="Colorful List Accent 3"/>
<w:lsdException w:name="Colorful Grid Accent 3"/>
<w:lsdException w:name="Light Shading Accent 4"/>
<w:lsdException w:name="Light List Accent 4"/>
<w:lsdException w:name="Light Grid Accent 4"/>
<w:lsdException w:name="Medium Shading 1 Accent 4"/>
<w:lsdException w:name="Medium Shading 2 Accent 4"/>
<w:lsdException w:name="Medium List 1 Accent 4"/>
<w:lsdException w:name="Medium List 2 Accent 4"/>
<w:lsdException w:name="Medium Grid 1 Accent 4"/>
<w:lsdException w:name="Medium Grid 2 Accent 4"/>
<w:lsdException w:name="Medium Grid 3 Accent 4"/>
<w:lsdException w:name="Dark List Accent 4"/>
<w:lsdException w:name="Colorful Shading Accent 4"/>
<w:lsdException w:name="Colorful List Accent 4"/>
<w:lsdException w:name="Colorful Grid Accent 4"/>
<w:lsdException w:name="Light Shading Accent 5"/>
<w:lsdException w:name="Light List Accent 5"/>
<w:lsdException w:name="Light Grid Accent 5"/>
<w:lsdException w:name="Medium Shading 1 Accent 5"/>
<w:lsdException w:name="Medium Shading 2 Accent 5"/>
<w:lsdException w:name="Medium List 1 Accent 5"/>
<w:lsdException w:name="Medium List 2 Accent 5"/>
<w:lsdException w:name="Medium Grid 1 Accent 5"/>
<w:lsdException w:name="Medium Grid 2 Accent 5"/>
<w:lsdException w:name="Medium Grid 3 Accent 5"/>
<w:lsdException w:name="Dark List Accent 5"/>
<w:lsdException w:name="Colorful Shading Accent 5"/>
<w:lsdException w:name="Colorful List Accent 5"/>
<w:lsdException w:name="Colorful Grid Accent 5"/>
<w:lsdException w:name="Light Shading Accent 6"/>
<w:lsdException w:name="Light List Accent 6"/>
<w:lsdException w:name="Light Grid Accent 6"/>
<w:lsdException w:name="Medium Shading 1 Accent 6"/>
<w:lsdException w:name="Medium Shading 2 Accent 6"/>
<w:lsdException w:name="Medium List 1 Accent 6"/>
<w:lsdException w:name="Medium List 2 Accent 6"/>
<w:lsdException w:name="Medium Grid 1 Accent 6"/>
<w:lsdException w:name="Medium Grid 2 Accent 6"/>
<w:lsdException w:name="Medium Grid 3 Accent 6"/>
<w:lsdException w:name="Dark List Accent 6"/>
<w:lsdException w:name="Colorful Shading Accent 6"/>
<w:lsdException w:name="Colorful List Accent 6"/>
<w:lsdException w:name="Colorful Grid Accent 6"/>
<w:lsdException w:name="Subtle Emphasis"/>
<w:lsdException w:name="Intense Emphasis"/>
<w:lsdException w:name="Subtle Reference"/>
<w:lsdException w:name="Intense Reference"/>
<w:lsdException w:name="Book Title"/>
<w:lsdException w:name="TOC Heading"/>
</w:latentStyles>
<w:style w:type="paragraph" w:default="on" w:styleId="a">
<w:name w:val="Normal"/>
<wx:uiName wx:val="正文"/>
<w:rsid w:val="00E7404D"/>
<w:pPr>
<w:widowControl w:val="off"/>
<w:jc w:val="both"/>
</w:pPr>
<w:rPr>
<wx:font wx:val="Calibri"/>
<w:kern w:val="2"/>
<w:sz w:val="21"/>
<w:sz-cs w:val="22"/>
<w:lang w:val="EN-US" w:fareast="ZH-CN" w:bidi="AR-SA"/>
</w:rPr>
</w:style>
<w:style w:type="paragraph" w:styleId="1">
<w:name w:val="heading 1"/>
<wx:uiName wx:val="标题 1"/>
<w:basedOn w:val="a"/>
<w:next w:val="a"/>
<w:link w:val="1Char"/>
<w:rsid w:val="004E26D5"/>
<w:pPr>
<w:keepNext/>
<w:keepLines/>
<w:spacing w:before="340" w:after="330" w:line="578" w:line-rule="auto"/>
<w:outlineLvl w:val="0"/>
</w:pPr>
<w:rPr>
<wx:font wx:val="Calibri"/>
<w:b/>
<w:b-cs/>
<w:kern w:val="44"/>
<w:sz w:val="44"/>
<w:sz-cs w:val="44"/>
</w:rPr>
</w:style>
<w:style w:type="paragraph" w:styleId="2">
<w:name w:val="heading 2"/>
<wx:uiName wx:val="标题 2"/>
<w:basedOn w:val="a"/>
<w:next w:val="a"/>
<w:link w:val="2Char"/>
<w:rsid w:val="00001E17"/>
<w:pPr>
<w:keepNext/>
<w:keepLines/>
<w:spacing w:before="260" w:after="260" w:line="416" w:line-rule="auto"/>
<w:outlineLvl w:val="1"/>
</w:pPr>
<w:rPr>
<w:rFonts w:ascii="Calibri Light" w:h-ansi="Calibri Light"/>
<wx:font wx:val="Calibri Light"/>
<w:b/>
<w:b-cs/>
<w:sz w:val="32"/>
<w:sz-cs w:val="32"/>
</w:rPr>
</w:style>
<w:style w:type="character" w:default="on" w:styleId="a0">
<w:name w:val="Default Paragraph Font"/>
<wx:uiName wx:val="默认段落字体"/>
</w:style>
<w:style w:type="table" w:default="on" w:styleId="a1">
<w:name w:val="Normal Table"/>
<wx:uiName wx:val="普通表格"/>
<w:rPr>
<wx:font wx:val="Calibri"/>
<w:lang w:val="EN-US" w:fareast="ZH-CN" w:bidi="AR-SA"/>
</w:rPr>
<w:tblPr>
<w:tblInd w:w="0" w:type="dxa"/>
<w:tblCellMar>
<w:top w:w="0" w:type="dxa"/>
<w:left w:w="108" w:type="dxa"/>
<w:bottom w:w="0" w:type="dxa"/>
<w:right w:w="108" w:type="dxa"/>
</w:tblCellMar>
</w:tblPr>
</w:style>
<w:style w:type="list" w:default="on" w:styleId="a2">
<w:name w:val="No List"/>
<wx:uiName wx:val="无列表"/>
</w:style>
<w:style w:type="table" w:styleId="a3">
<w:name w:val="Table Grid"/>
<wx:uiName wx:val="网格型"/>
<w:basedOn w:val="a1"/>
<w:rsid w:val="004E26D5"/>
<w:rPr>
<wx:font wx:val="Calibri"/>
</w:rPr>
<w:tblPr>
<w:tblBorders>
<w:top w:val="single" w:sz="4" wx:bdrwidth="10" w:space="0" w:color="auto"/>
<w:left w:val="single" w:sz="4" wx:bdrwidth="10" w:space="0" w:color="auto"/>
<w:bottom w:val="single" w:sz="4" wx:bdrwidth="10" w:space="0" w:color="auto"/>
<w:right w:val="single" w:sz="4" wx:bdrwidth="10" w:space="0" w:color="auto"/>
<w:insideH w:val="single" w:sz="4" wx:bdrwidth="10" w:space="0" w:color="auto"/>
<w:insideV w:val="single" w:sz="4" wx:bdrwidth="10" w:space="0" w:color="auto"/>
</w:tblBorders>
</w:tblPr>
</w:style>
<w:style w:type="character" w:styleId="1Char">
<w:name w:val="标题 1 Char"/>
<w:link w:val="1"/>
<w:rsid w:val="004E26D5"/>
<w:rPr>
<w:b/>
<w:b-cs/>
<w:kern w:val="44"/>
<w:sz w:val="44"/>
<w:sz-cs w:val="44"/>
</w:rPr>
</w:style>
<w:style w:type="paragraph" w:styleId="a4">
<w:name w:val="header"/>
<wx:uiName wx:val="页眉"/>
<w:basedOn w:val="a"/>
<w:link w:val="Char"/>
<w:rsid w:val="00837B0C"/>
<w:pPr>
<w:pBdr>
<w:bottom w:val="single" w:sz="6" wx:bdrwidth="15" w:space="1" w:color="auto"/>
</w:pBdr>
<w:tabs>
<w:tab w:val="center" w:pos="4153"/>
<w:tab w:val="right" w:pos="8306"/>
</w:tabs>
<w:snapToGrid w:val="off"/>
<w:jc w:val="center"/>
</w:pPr>
<w:rPr>
<wx:font wx:val="Calibri"/>
<w:sz w:val="18"/>
<w:sz-cs w:val="18"/>
</w:rPr>
</w:style>
<w:style w:type="character" w:styleId="Char">
<w:name w:val="页眉 Char"/>
<w:link w:val="a4"/>
<w:rsid w:val="00837B0C"/>
<w:rPr>
<w:kern w:val="2"/>
<w:sz w:val="18"/>
<w:sz-cs w:val="18"/>
</w:rPr>
</w:style>
<w:style w:type="paragraph" w:styleId="a5">
<w:name w:val="footer"/>
<wx:uiName wx:val="页脚"/>
<w:basedOn w:val="a"/>
<w:link w:val="Char0"/>
<w:rsid w:val="00837B0C"/>
<w:pPr>
<w:tabs>
<w:tab w:val="center" w:pos="4153"/>
<w:tab w:val="right" w:pos="8306"/>
</w:tabs>
<w:snapToGrid w:val="off"/>
<w:jc w:val="left"/>
</w:pPr>
<w:rPr>
<wx:font wx:val="Calibri"/>
<w:sz w:val="18"/>
<w:sz-cs w:val="18"/>
</w:rPr>
</w:style>
<w:style w:type="character" w:styleId="Char0">
<w:name w:val="页脚 Char"/>
<w:link w:val="a5"/>
<w:rsid w:val="00837B0C"/>
<w:rPr>
<w:kern w:val="2"/>
<w:sz w:val="18"/>
<w:sz-cs w:val="18"/>
</w:rPr>
</w:style>
<w:style w:type="paragraph" w:styleId="a6">
<w:name w:val="Title"/>
<wx:uiName wx:val="标题"/>
<w:basedOn w:val="a"/>
<w:next w:val="a"/>
<w:link w:val="Char1"/>
<w:rsid w:val="00001E17"/>
<w:pPr>
<w:spacing w:before="240" w:after="60"/>
<w:jc w:val="center"/>
<w:outlineLvl w:val="0"/>
</w:pPr>
<w:rPr>
<w:rFonts w:ascii="Calibri Light" w:h-ansi="Calibri Light"/>
<wx:font wx:val="Calibri Light"/>
<w:b/>
<w:b-cs/>
<w:sz w:val="32"/>
<w:sz-cs w:val="32"/>
</w:rPr>
</w:style>
<w:style w:type="character" w:styleId="Char1">
<w:name w:val="标题 Char"/>
<w:link w:val="a6"/>
<w:rsid w:val="00001E17"/>
<w:rPr>
<w:rFonts w:ascii="Calibri Light" w:h-ansi="Calibri Light" w:cs="Times New Roman"/>
<w:b/>
<w:b-cs/>
<w:kern w:val="2"/>
<w:sz w:val="32"/>
<w:sz-cs w:val="32"/>
</w:rPr>
</w:style>
<w:style w:type="character" w:styleId="2Char">
<w:name w:val="标题 2 Char"/>
<w:link w:val="2"/>
<w:rsid w:val="00001E17"/>
<w:rPr>
<w:rFonts w:ascii="Calibri Light" w:fareast="宋体" w:h-ansi="Calibri Light" w:cs="Times New Roman"/>
<w:b/>
<w:b-cs/>
<w:kern w:val="2"/>
<w:sz w:val="32"/>
<w:sz-cs w:val="32"/>
</w:rPr>
</w:style>
<w:style w:type="character" w:styleId="a7">
<w:name w:val="Strong"/>
<wx:uiName wx:val="要点"/>
<w:rsid w:val="00001E17"/>
<w:rPr>
<w:b/>
<w:b-cs/>
</w:rPr>
</w:style>
</w:styles>
<w:shapeDefaults>
<o:shapedefaults v:ext="edit" spidmax="2049"/>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1"/>
</o:shapelayout>
</w:shapeDefaults>
<w:docPr>
<w:view w:val="print"/>
<w:zoom w:percent="100"/>
<w:doNotEmbedSystemFonts/>
<w:bordersDontSurroundHeader/>
<w:bordersDontSurroundFooter/>
<w:defaultTabStop w:val="420"/>
<w:drawingGridHorizontalSpacing w:val="105"/>
<w:drawingGridVerticalSpacing w:val="156"/>
<w:displayHorizontalDrawingGridEvery w:val="0"/>
<w:displayVerticalDrawingGridEvery w:val="2"/>
<w:punctuationKerning/>
<w:characterSpacingControl w:val="CompressPunctuation"/>
<w:optimizeForBrowser/>
<w:allowPNG/>
<w:validateAgainstSchema/>
<w:saveInvalidXML w:val="off"/>
<w:ignoreMixedContent w:val="off"/>
<w:alwaysShowPlaceholderText w:val="off"/>
<w:hdrShapeDefaults>
<o:shapedefaults v:ext="edit" spidmax="2049"/>
</w:hdrShapeDefaults>
<w:footnotePr>
<w:footnote w:type="separator">
<w:p wsp:rsidR="008E0C30" wsp:rsidRDefault="008E0C30" wsp:rsidP="00837B0C">
<w:r>
<w:separator/>
</w:r>
</w:p>
</w:footnote>
<w:footnote w:type="continuation-separator">
<w:p wsp:rsidR="008E0C30" wsp:rsidRDefault="008E0C30" wsp:rsidP="00837B0C">
<w:r>
<w:continuationSeparator/>
</w:r>
</w:p>
</w:footnote>
</w:footnotePr>
<w:endnotePr>
<w:endnote w:type="separator">
<w:p wsp:rsidR="008E0C30" wsp:rsidRDefault="008E0C30" wsp:rsidP="00837B0C">
<w:r>
<w:separator/>
</w:r>
</w:p>
</w:endnote>
<w:endnote w:type="continuation-separator">
<w:p wsp:rsidR="008E0C30" wsp:rsidRDefault="008E0C30" wsp:rsidP="00837B0C">
<w:r>
<w:continuationSeparator/>
</w:r>
</w:p>
</w:endnote>
</w:endnotePr>
<w:compat>
<w:spaceForUL/>
<w:balanceSingleByteDoubleByteWidth/>
<w:doNotLeaveBackslashAlone/>
<w:ulTrailSpace/>
<w:doNotExpandShiftReturn/>
<w:adjustLineHeightInTable/>
<w:breakWrappedTables/>
<w:snapToGridInCell/>
<w:wrapTextWithPunct/>
<w:useAsianBreakRules/>
<w:dontGrowAutofit/>
<w:useFELayout/>
</w:compat>
<wsp:rsids>
<wsp:rsidRoot wsp:val="000453AA"/>
<wsp:rsid wsp:val="00001E17"/>
<wsp:rsid wsp:val="000453AA"/>
<wsp:rsid wsp:val="0013169D"/>
<wsp:rsid wsp:val="0016677A"/>
<wsp:rsid wsp:val="00197F2E"/>
<wsp:rsid wsp:val="001C5ADB"/>
<wsp:rsid wsp:val="00256B65"/>
<wsp:rsid wsp:val="0026712A"/>
<wsp:rsid wsp:val="003553C4"/>
<wsp:rsid wsp:val="00363196"/>
<wsp:rsid wsp:val="0037088C"/>
<wsp:rsid wsp:val="00416410"/>
<wsp:rsid wsp:val="00453366"/>
<wsp:rsid wsp:val="00463361"/>
<wsp:rsid wsp:val="004E26D5"/>
<wsp:rsid wsp:val="00506CFE"/>
<wsp:rsid wsp:val="00613C09"/>
<wsp:rsid wsp:val="0064491A"/>
<wsp:rsid wsp:val="0066295A"/>
<wsp:rsid wsp:val="00837B0C"/>
<wsp:rsid wsp:val="008B6744"/>
<wsp:rsid wsp:val="008E0C30"/>
<wsp:rsid wsp:val="0090096A"/>
<wsp:rsid wsp:val="00AC462A"/>
<wsp:rsid wsp:val="00AE0C26"/>
<wsp:rsid wsp:val="00B849DD"/>
<wsp:rsid wsp:val="00B84C68"/>
<wsp:rsid wsp:val="00BB4DA7"/>
<wsp:rsid wsp:val="00BC254A"/>
<wsp:rsid wsp:val="00C02F8A"/>
<wsp:rsid wsp:val="00C430A2"/>
<wsp:rsid wsp:val="00CB1103"/>
<wsp:rsid wsp:val="00CE6265"/>
<wsp:rsid wsp:val="00CF2C89"/>
<wsp:rsid wsp:val="00DA64E0"/>
<wsp:rsid wsp:val="00DF6366"/>
<wsp:rsid wsp:val="00E44C47"/>
<wsp:rsid wsp:val="00E45B48"/>
<wsp:rsid wsp:val="00E7404D"/>
<wsp:rsid wsp:val="00F5055A"/>
<wsp:rsid wsp:val="00FB1610"/>
<wsp:rsid wsp:val="00FB342E"/>
</wsp:rsids>
</w:docPr>
<w:body>
<wx:sect>
<w:tbl>
<w:tblPr>
<w:tblW w:w="10574" w:type="dxa"/>
<w:tblInd w:w="108" w:type="dxa"/>
<w:tblLayout w:type="Fixed"/>
<w:tblLook w:val="04A0"/>
</w:tblPr>
<w:tblGrid>
<w:gridCol w:w="2268"/>
<w:gridCol w:w="8306"/>
</w:tblGrid>

<#list stuanswerList as stuanswer>
<w:tr wsp:rsidR="004E26D5" wsp:rsidRPr="0037088C" wsp:rsidTr="00197F2E">
<w:trPr>
<w:trHeight w:val="2836"/>
</w:trPr>
<w:tc>
<w:tcPr>
<w:tcW w:w="10574" w:type="dxa"/>
<w:gridSpan w:val="2"/>
<w:shd w:val="clear" w:color="auto" w:fill="auto"/>
</w:tcPr>
<wx:pBdrGroup>
<wx:borders>
<wx:bottom wx:val="solid" wx:bdrwidth="15" wx:space="1" wx:color="auto"/>
</wx:borders>
<w:p wsp:rsidR="00506CFE" wsp:rsidRDefault="00001E17" wsp:rsidP="00001E17">
<w:pPr>
<w:pStyle w:val="1"/>
<w:pBdr>
<w:bottom w:val="single" w:sz="6" wx:bdrwidth="15" w:space="1" w:color="auto"/>
</w:pBdr>
<w:jc w:val="center"/>
</w:pPr>
<w:r>
<w:t>${stuanswer.paperName}</w:t>
</w:r>
</w:p>
</wx:pBdrGroup>
<w:tbl>
<w:tblPr>
<w:tblW w:w="0" w:type="auto"/>
<w:tblLayout w:type="Fixed"/>
<w:tblLook w:val="04A0"/>
</w:tblPr>
<w:tblGrid>
<w:gridCol w:w="1305"/>
<w:gridCol w:w="2114"/>
<w:gridCol w:w="1288"/>
<w:gridCol w:w="2132"/>
<w:gridCol w:w="1128"/>
<w:gridCol w:w="2292"/>
</w:tblGrid>
<w:tr wsp:rsidR="0016677A" wsp:rsidTr="0064491A">
<w:tc>
<w:tcPr>
<w:tcW w:w="1305" w:type="dxa"/>
<w:shd w:val="clear" w:color="auto" w:fill="auto"/>
</w:tcPr>
<w:p wsp:rsidR="00001E17" wsp:rsidRDefault="00001E17" wsp:rsidP="00001E17">
<w:pPr>
<w:rPr>
<w:rStyle w:val="a7"/>
</w:rPr>
</w:pPr>
<w:r>
<w:rPr>
<w:rStyle w:val="a7"/>
<w:rFonts w:hint="fareast"/>
</w:rPr>
<w:t>班级:</w:t>
</w:r>
<w:r>
<w:rPr>
<w:rStyle w:val="a7"/>
<w:rFonts w:hint="fareast"/>
<wx:font wx:val="宋体"/>
</w:rPr>
<w:t>:</w:t>
</w:r>
</w:p>
</w:tc>
<w:tc>
<w:tcPr>
<w:tcW w:w="2114" w:type="dxa"/>
<w:shd w:val="clear" w:color="auto" w:fill="auto"/>
</w:tcPr>
<w:p wsp:rsidR="00001E17" wsp:rsidRDefault="00001E17" wsp:rsidP="00001E17">
<w:pPr>
<w:rPr>
<w:rStyle w:val="a7"/>
</w:rPr>
</w:pPr>
<w:r>
<w:rPr>
<w:rStyle w:val="a7"/>
<w:rFonts w:hint="fareast"/>
</w:rPr>
<w:t>${stuanswer.className}</w:t>
</w:r>
</w:p>
</w:tc>
<w:tc>
<w:tcPr>
<w:tcW w:w="1288" w:type="dxa"/>
<w:shd w:val="clear" w:color="auto" w:fill="auto"/>
</w:tcPr>
<w:p wsp:rsidR="00001E17" wsp:rsidRDefault="00001E17" wsp:rsidP="00001E17">
<w:pPr>
<w:rPr>
<w:rStyle w:val="a7"/>
</w:rPr>
</w:pPr>
<w:r>
<w:rPr>
<w:rStyle w:val="a7"/>
</w:rPr>
<w:t>学号:</w:t>
</w:r>
<w:r>
<w:rPr>
<w:rStyle w:val="a7"/>
<w:rFonts w:hint="fareast"/>
<wx:font wx:val="宋体"/>
</w:rPr>
<w:t>:</w:t>
</w:r>
</w:p>
</w:tc>
<w:tc>
<w:tcPr>
<w:tcW w:w="2132" w:type="dxa"/>
<w:shd w:val="clear" w:color="auto" w:fill="auto"/>
</w:tcPr>
<w:p wsp:rsidR="00001E17" wsp:rsidRDefault="00001E17" wsp:rsidP="00001E17">
<w:pPr>
<w:rPr>
<w:rStyle w:val="a7"/>
</w:rPr>
</w:pPr>
<w:r>
<w:rPr>
<w:rStyle w:val="a7"/>
<w:rFonts w:hint="fareast"/>
</w:rPr>
<w:t>${stuanswer.stuNo}</w:t>
</w:r>
</w:p>
</w:tc>
<w:tc>
<w:tcPr>
<w:tcW w:w="1128" w:type="dxa"/>
<w:shd w:val="clear" w:color="auto" w:fill="auto"/>
</w:tcPr>
<w:p wsp:rsidR="00001E17" wsp:rsidRDefault="00001E17" wsp:rsidP="00001E17">
<w:pPr>
<w:rPr>
<w:rStyle w:val="a7"/>
</w:rPr>
</w:pPr>
<w:r>
<w:rPr>
<w:rStyle w:val="a7"/>
<w:rFonts w:hint="fareast"/>
</w:rPr>
<w:t>姓名:</w:t>
</w:r>
<w:r>
<w:rPr>
<w:rStyle w:val="a7"/>
<wx:font wx:val="宋体"/>
</w:rPr>
<w:t></w:t>
</w:r>
</w:p>
</w:tc>
<w:tc>
<w:tcPr>
<w:tcW w:w="2292" w:type="dxa"/>
<w:shd w:val="clear" w:color="auto" w:fill="auto"/>
</w:tcPr>
<w:p wsp:rsidR="00001E17" wsp:rsidRDefault="00001E17" wsp:rsidP="00001E17">
<w:pPr>
<w:rPr>
<w:rStyle w:val="a7"/>
</w:rPr>
</w:pPr>
<w:r>
<w:rPr>
<w:rStyle w:val="a7"/>
<w:rFonts w:hint="fareast"/>
</w:rPr>
<w:t>${stuanswer.studentName}</w:t>
</w:r>
</w:p>
</w:tc>
</w:tr>
<w:tr wsp:rsidR="0016677A" wsp:rsidTr="0064491A">
<w:tc>
<w:tcPr>
<w:tcW w:w="1305" w:type="dxa"/>
<w:shd w:val="clear" w:color="auto" w:fill="auto"/>
</w:tcPr>
<w:p wsp:rsidR="00001E17" wsp:rsidRDefault="00001E17" wsp:rsidP="00001E17">
<w:pPr>
<w:rPr>
<w:rStyle w:val="a7"/>
</w:rPr>
</w:pPr>
<w:r>
<w:rPr>
<w:rStyle w:val="a7"/>
<w:rFonts w:hint="fareast"/>
</w:rPr>
<w:t>开始时间:</w:t>
</w:r>
<w:r>
<w:rPr>
<w:rStyle w:val="a7"/>
<w:rFonts w:hint="fareast"/>
<wx:font wx:val="宋体"/>
</w:rPr>
<w:t>:</w:t>
</w:r>
</w:p>
</w:tc>
<w:tc>
<w:tcPr>
<w:tcW w:w="2114" w:type="dxa"/>
<w:shd w:val="clear" w:color="auto" w:fill="auto"/>
</w:tcPr>
<w:p wsp:rsidR="00001E17" wsp:rsidRDefault="00001E17" wsp:rsidP="00001E17">
<w:pPr>
<w:rPr>
<w:rStyle w:val="a7"/>
</w:rPr>
</w:pPr>
<w:r>
<w:rPr>
<w:rStyle w:val="a7"/>
<w:rFonts w:hint="fareast"/>
</w:rPr>
<w:t>${stuanswer.answerStime?datetime}</w:t>
</w:r>
</w:p>
</w:tc>
<w:tc>
<w:tcPr>
<w:tcW w:w="1288" w:type="dxa"/>
<w:shd w:val="clear" w:color="auto" w:fill="auto"/>
</w:tcPr>
<w:p wsp:rsidR="00001E17" wsp:rsidRDefault="00001E17" wsp:rsidP="00001E17">
<w:pPr>
<w:rPr>
<w:rStyle w:val="a7"/>
</w:rPr>
</w:pPr>
<w:r>
<w:rPr>
<w:rStyle w:val="a7"/>
<w:rFonts w:hint="fareast"/>
</w:rPr>
<w:t>结束时间:</w:t>
</w:r>
<w:r>
<w:rPr>
<w:rStyle w:val="a7"/>
<w:rFonts w:hint="fareast"/>
<wx:font wx:val="宋体"/>
</w:rPr>
<w:t></w:t>
</w:r>
</w:p>
</w:tc>
<w:tc>
<w:tcPr>
<w:tcW w:w="2132" w:type="dxa"/>
<w:shd w:val="clear" w:color="auto" w:fill="auto"/>
</w:tcPr>
<w:p wsp:rsidR="00001E17" wsp:rsidRDefault="00001E17" wsp:rsidP="00001E17">
<w:pPr>
<w:rPr>
<w:rStyle w:val="a7"/>
</w:rPr>
</w:pPr>
<w:r>
<w:rPr>
<w:rStyle w:val="a7"/>
<w:rFonts w:hint="fareast"/>
</w:rPr>
<w:t>${stuanswer.answerEtime?datetime}</w:t>
</w:r>
</w:p>
</w:tc>
<w:tc>
<w:tcPr>
<w:tcW w:w="1128" w:type="dxa"/>
<w:shd w:val="clear" w:color="auto" w:fill="auto"/>
</w:tcPr>
<w:p wsp:rsidR="00001E17" wsp:rsidRDefault="00001E17" wsp:rsidP="00001E17">
<w:pPr>
<w:rPr>
<w:rStyle w:val="a7"/>
</w:rPr>
</w:pPr>
<w:r>
<w:rPr>
<w:rStyle w:val="a7"/>
<w:rFonts w:hint="fareast"/>
</w:rPr>
<w:t>总分:</w:t>
</w:r>
<w:r>
<w:rPr>
<w:rStyle w:val="a7"/>
<wx:font wx:val="宋体"/>
</w:rPr>
<w:t>:</w:t>
</w:r>
</w:p>
</w:tc>
<w:tc>
<w:tcPr>
<w:tcW w:w="2292" w:type="dxa"/>
<w:shd w:val="clear" w:color="auto" w:fill="auto"/>
</w:tcPr>
<w:p wsp:rsidR="00001E17" wsp:rsidRDefault="00001E17" wsp:rsidP="00001E17">
<w:pPr>
<w:rPr>
<w:rStyle w:val="a7"/>
</w:rPr>
</w:pPr>
<w:r>
<w:rPr>
<w:rStyle w:val="a7"/>
<w:rFonts w:hint="fareast"/>
</w:rPr>
<w:t>${stuanswer.totalScore}</w:t>
</w:r>
</w:p>
</w:tc>
</w:tr>
<w:tr wsp:rsidR="0016677A" wsp:rsidTr="0064491A">
<w:tc>
<w:tcPr>
<w:tcW w:w="1305" w:type="dxa"/>
<w:shd w:val="clear" w:color="auto" w:fill="auto"/>
</w:tcPr>
<w:p wsp:rsidR="00001E17" wsp:rsidRDefault="00001E17" wsp:rsidP="00001E17">
<w:pPr>
<w:rPr>
<w:rStyle w:val="a7"/>
</w:rPr>
</w:pPr>
<w:r>
<w:rPr>
<w:rStyle w:val="a7"/>
<w:rFonts w:hint="fareast"/>
</w:rPr>
<w:t>考试用时:</w:t>
</w:r>
<w:r>
<w:rPr>
<w:rStyle w:val="a7"/>
<wx:font wx:val="宋体"/>
</w:rPr>
<w:t></w:t>
</w:r>
</w:p>
</w:tc>
<w:tc>
<w:tcPr>
<w:tcW w:w="2114" w:type="dxa"/>
<w:shd w:val="clear" w:color="auto" w:fill="auto"/>
</w:tcPr>
<w:p wsp:rsidR="00001E17" wsp:rsidRDefault="00001E17" wsp:rsidP="00001E17">
<w:pPr>
<w:rPr>
<w:rStyle w:val="a7"/>
</w:rPr>
</w:pPr>
<w:r>
<w:rPr>
<w:rStyle w:val="a7"/>
<w:rFonts w:hint="fareast"/>
</w:rPr>
<w:t>${stuanswer.usedMinutes}</w:t>
</w:r>
</w:p>
</w:tc>
<w:tc>
<w:tcPr>
<w:tcW w:w="1288" w:type="dxa"/>
<w:shd w:val="clear" w:color="auto" w:fill="auto"/>
</w:tcPr>
<w:p wsp:rsidR="00001E17" wsp:rsidRDefault="00001E17" wsp:rsidP="00001E17">
<w:pPr>
<w:rPr>
<w:rStyle w:val="a7"/>
</w:rPr>
</w:pPr>
<w:r>
<w:rPr>
<w:rStyle w:val="a7"/>
<w:rFonts w:hint="fareast"/>
</w:rPr>
<w:t>得分:</w:t>
</w:r>
<w:r>
<w:rPr>
<w:rStyle w:val="a7"/>
<wx:font wx:val="宋体"/>
</w:rPr>
<w:t></w:t>
</w:r>
</w:p>
</w:tc>
<w:tc>
<w:tcPr>
<w:tcW w:w="2132" w:type="dxa"/>
<w:shd w:val="clear" w:color="auto" w:fill="auto"/>
</w:tcPr>
<w:p wsp:rsidR="00001E17" wsp:rsidRDefault="00001E17" wsp:rsidP="00001E17">
<w:pPr>
<w:rPr>
<w:rStyle w:val="a7"/>
</w:rPr>
</w:pPr>
<w:r>
<w:rPr>
<w:rStyle w:val="a7"/>
<w:rFonts w:hint="fareast"/>
</w:rPr>
<w:t>${stuanswer.score}</w:t>
</w:r>
</w:p>
</w:tc>
<w:tc>
<w:tcPr>
<w:tcW w:w="1128" w:type="dxa"/>
<w:shd w:val="clear" w:color="auto" w:fill="auto"/>
</w:tcPr>
<w:p wsp:rsidR="00001E17" wsp:rsidRDefault="00001E17" wsp:rsidP="00001E17">
<w:pPr>
<w:rPr>
<w:rStyle w:val="a7"/>
</w:rPr>
</w:pPr>
</w:p>
</w:tc>
<w:tc>
<w:tcPr>
<w:tcW w:w="2292" w:type="dxa"/>
<w:shd w:val="clear" w:color="auto" w:fill="auto"/>
</w:tcPr>
<w:p wsp:rsidR="00001E17" wsp:rsidRDefault="00001E17" wsp:rsidP="00001E17">
<w:pPr>
<w:rPr>
<w:rStyle w:val="a7"/>
</w:rPr>
</w:pPr>
</w:p>
</w:tc>
</w:tr>
</#list>
</w:tbl>

<wx:pBdrGroup>
<wx:borders>
<wx:bottom wx:val="solid" wx:bdrwidth="15" wx:space="1" wx:color="auto"/>
</wx:borders>
<w:p wsp:rsidR="00001E17" wsp:rsidRDefault="00001E17" wsp:rsidP="00001E17">
<w:pPr>
<w:pBdr>
<w:bottom w:val="single" w:sz="6" wx:bdrwidth="15" w:space="1" w:color="auto"/>
</w:pBdr>
<w:rPr>
<w:rStyle w:val="a7"/>
</w:rPr>
</w:pPr>
</w:p>
</wx:pBdrGroup>
<w:p wsp:rsidR="00001E17" wsp:rsidRPr="00001E17" wsp:rsidRDefault="00001E17" wsp:rsidP="00001E17">
<w:pPr>
<w:rPr>
<w:rStyle w:val="a7"/>
</w:rPr>
</w:pPr>
</w:p>
</w:tc>
</w:tr>

<#list questionsList as questions>	
<#if questions.type =='2' || questions.type =='4'>
<w:tr wsp:rsidR="0064491A" wsp:rsidTr="00197F2E">
<w:tc>
<w:tcPr>
<w:tcW w:w="2268" w:type="dxa"/>
<w:shd w:val="clear" w:color="auto" w:fill="auto"/>
</w:tcPr>
<w:p wsp:rsidR="008B6744" wsp:rsidRDefault="00001E17" wsp:rsidP="00C430A2">
<w:pPr>
<w:jc w:val="right"/>
</w:pPr>
<w:r>
<w:rPr>
<w:rFonts w:hint="fareast"/>
<w:b/>
<w:sz w:val="32"/>
<w:sz-cs w:val="32"/>
</w:rPr>
<w:t>${questions_index+1}.</w:t>
</w:r>
</w:p>
</w:tc>
<w:tc>
<w:tcPr>
<w:tcW w:w="8306" w:type="dxa"/>
<w:shd w:val="clear" w:color="auto" w:fill="auto"/>
</w:tcPr>
<w:p wsp:rsidR="008B6744" wsp:rsidRDefault="00001E17" wsp:rsidP="00C430A2">
<w:r>
<w:rPr>
<w:rFonts w:hint="fareast"/>
<w:b/>
<w:sz w:val="32"/>
<w:sz-cs w:val="32"/>
</w:rPr>
<w:t>
<#if (questions.stem)??>
${questions.stem}
</#if>
</w:t>
</w:r>
</w:p>
</w:tc>
</w:tr>
</#if>

<#list questions.eduExamSubquestionsList as subquestions>
<w:tr wsp:rsidR="0064491A" wsp:rsidTr="00197F2E">
<w:tc>
<w:tcPr>
<w:tcW w:w="2268" w:type="dxa"/>
<w:shd w:val="clear" w:color="auto" w:fill="auto"/>
</w:tcPr>
<w:p wsp:rsidR="008B6744" wsp:rsidRDefault="00001E17" wsp:rsidP="00C430A2">
<w:pPr>
<w:jc w:val="right"/>
</w:pPr>
<w:r>
<w:rPr>
<w:rFonts w:hint="fareast"/>
<w:b/>
<w:sz w:val="32"/>
<w:sz-cs w:val="32"/>
</w:rPr>
<w:t>
<#if questions.type =='2' || questions.type =='4'>
(${subquestions_index+1})
</#if>
<#if questions.type =='1' || questions.type =='3'>
${questions_index+1}.
</#if>
</w:t>
</w:r>
</w:p>
</w:tc>
<w:tc>
<w:tcPr>
<w:tcW w:w="8306" w:type="dxa"/>
<w:shd w:val="clear" w:color="auto" w:fill="auto"/>
</w:tcPr>
<w:p wsp:rsidR="008B6744" wsp:rsidRDefault="00001E17" wsp:rsidP="00C430A2">
<w:r>
<w:rPr>
<w:rFonts w:hint="fareast"/>
<w:b/>
<w:sz w:val="32"/>
<w:sz-cs w:val="32"/>
</w:rPr>
<w:t>${subquestions.stem}</w:t>
</w:r>
</w:p>
</w:tc>
</w:tr>

<#list subquestions.answerList as answer>
<w:tr wsp:rsidR="0064491A" wsp:rsidTr="00197F2E">
<w:tc>
<w:tcPr>
<w:tcW w:w="2268" w:type="dxa"/>
<w:shd w:val="clear" w:color="auto" w:fill="auto"/>
</w:tcPr>
<w:p wsp:rsidR="008B6744" wsp:rsidRDefault="00001E17" wsp:rsidP="00C430A2">
<w:pPr>
<w:jc w:val="right"/>
</w:pPr>
<w:r>
<w:rPr>
<w:rFonts w:hint="fareast"/>
<w:b/>
<w:sz w:val="28"/>
<w:sz-cs w:val="28"/>
</w:rPr>
<w:t>答案${answer.sorts}:</w:t>
</w:r>
</w:p>
</w:tc>
<w:tc>
<w:tcPr>
<w:tcW w:w="8306" w:type="dxa"/>
<w:shd w:val="clear" w:color="auto" w:fill="auto"/>
</w:tcPr>
<w:p wsp:rsidR="008B6744" wsp:rsidRDefault="00001E17" wsp:rsidP="00C430A2">
<w:r>
<w:rPr>
<w:rFonts w:hint="fareast"/>
<w:sz w:val="28"/>
<w:sz-cs w:val="28"/>
</w:rPr>
<w:t>${answer.answerInfo}</w:t>
</w:r>
</w:p>
</w:tc>
</w:tr>
</#list>

<w:tr wsp:rsidR="0064491A" wsp:rsidTr="00197F2E">
<w:tc>
<w:tcPr>
<w:tcW w:w="2268" w:type="dxa"/>
<w:shd w:val="clear" w:color="auto" w:fill="auto"/>
</w:tcPr>
<w:p wsp:rsidR="008B6744" wsp:rsidRDefault="00001E17" wsp:rsidP="00C430A2">
<w:pPr>
<w:jc w:val="right"/>
</w:pPr>
<w:r>
<w:rPr>
<w:rFonts w:hint="fareast"/>
<w:sz w:val="28"/>
<w:sz-cs w:val="28"/>
</w:rPr>
<w:t>正确答案:</w:t>
</w:r>
</w:p>
</w:tc>
<w:tc>
<w:tcPr>
<w:tcW w:w="8306" w:type="dxa"/>
<w:shd w:val="clear" w:color="auto" w:fill="auto"/>
</w:tcPr>
<w:p wsp:rsidR="008B6744" wsp:rsidRDefault="00001E17" wsp:rsidP="00C430A2">
<w:r>
<w:rPr>
<w:rFonts w:hint="fareast"/>
<w:color w:val="FF0000"/>
<w:sz w:val="28"/>
<w:sz-cs w:val="28"/>
</w:rPr>
<w:t>${subquestions.answerExp}</w:t>
</w:r>
</w:p>
</w:tc>
</w:tr>
<w:tr wsp:rsidR="0064491A" wsp:rsidTr="00197F2E">
<w:tc>
<w:tcPr>
<w:tcW w:w="2268" w:type="dxa"/>
<w:shd w:val="clear" w:color="auto" w:fill="auto"/>
</w:tcPr>
<w:p wsp:rsidR="008B6744" wsp:rsidRDefault="00363196" wsp:rsidP="00C430A2">
<w:pPr>
<w:jc w:val="right"/>
</w:pPr>
<w:r>
<w:rPr>
<w:rFonts w:hint="fareast"/>
<wx:font wx:val="宋体"/>
<w:sz w:val="28"/>
<w:sz-cs w:val="28"/>
</w:rPr>
<w:t>学生作答</w:t>
</w:r>
<w:r>
<w:rPr>
<w:rFonts w:hint="fareast"/>
<w:sz w:val="28"/>
<w:sz-cs w:val="28"/>
</w:rPr>
<w:t>:</w:t>
</w:r>
</w:p>
</w:tc>
<w:tc>
<w:tcPr>
<w:tcW w:w="8306" w:type="dxa"/>
<w:shd w:val="clear" w:color="auto" w:fill="auto"/>
</w:tcPr>
<w:p wsp:rsidR="008B6744" wsp:rsidRDefault="00001E17" wsp:rsidP="00C430A2">
<w:r>
<w:rPr>
<w:rFonts w:hint="fareast"/>
<w:sz w:val="28"/>
<w:sz-cs w:val="28"/>
</w:rPr>
<w:t>${subquestions.stuanswerExp}</w:t>
</w:r>
</w:p>
</w:tc>
</w:tr>
</#list>
</#list>
</w:tbl>
<w:p wsp:rsidR="00114570" wsp:rsidRDefault="008E0C30"/>
<w:sectPr wsp:rsidR="00114570" wsp:rsidSect="004E26D5">
<w:pgSz w:w="11906" w:h="16838"/>
<w:pgMar w:top="720" w:right="720" w:bottom="720" w:left="720" w:header="851" w:footer="992" w:gutter="0"/>
<w:cols w:space="425"/>
<w:docGrid w:type="lines" w:line-pitch="312"/>
</w:sectPr>
</wx:sect>
</w:body>
</w:wordDocument>

5.后台代码的实现

 public void exportPaper(EduExamStuanswer eduExamStuanswer, HttpServletRequest request, HttpServletResponse response, RedirectAttributes redirectAttributes) {
		
		//试题集合
		List<EduExamPaper2questions> questionsList = eduExamStuanswerinfoService.findEduExamStuanswerinfoList(eduExamStuanswerinfo);
		//学生答题信息集合
		List<EduExamStuanswer> stuanswerList = new ArrayList<EduExamStuanswer>();
		stuanswerList.add(eduExamStuanswer);
		//
		Map<String, List> dataMap = new HashMap<String, List>();
		//
		dataMap.put("questionsList", questionsList);
		dataMap.put("stuanswerList", stuanswerList);
		//
		String fileName =eduExamStuanswer.getPaperName()+ "试卷详情" +".doc";
		//
		Configuration configuration = new Configuration();  
        configuration.setDefaultEncoding("utf-8");  
        PrintWriter out = null;
        try {
        	//指定ftl所在目录,根据自己的改  
			configuration.setDirectoryForTemplateLoading(new File(request.getSession().getServletContext().getRealPath(File.separator)+"/static/freemarker/"));
			response.setContentType("application/msword");     
			response.setHeader("Content-Disposition", "attachment;filename=\"" + new String(fileName.getBytes("GBK"), "iso8859-1") + "\"");  
			response.setCharacterEncoding("utf-8");//此句非常关键,不然word文档全是乱码  
			out = response.getWriter();  
			Template t =  configuration.getTemplate("paper.ftl","utf-8");//以utf-8的编码读取ftl文件  
			t.process(dataMap, out);  
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
        out.close();  
    }
因为我做的是点击导出之后弹出下载窗口,所以用的
response.setHeader()

6.功能基本实现




  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值