zoukankan      html  css  js  c++  java
  • POI加dom4j将数据库的数据按一定格式生成word文档

    一:需求:将从数据库查处来的数据,生成word文档,并有固定的格式。(dom4j的jar包+poi的jar包)

    二:解决:(1)先建立固定格式的word文档(2007版本以上),另存成为xml文件,作为模板。(修改xml节点,添加属性,用于标示要填固定数据的节点)

       (2)dom4j解析模板xml文件,将文件读入内存,并把数据库数据写入内存的xml模型中

       (3)利用poi将内存中的含有数据库内容的xml模型转换成word内存模型,利用输出流输出word文档

    三:DEMO

    【1】模板的word文档

    【2】另存为.xml文件的内容moban.xml

      1 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
      2 <?mso-application progid="Word.Document"?>
      3 <pkg:package xmlns:pkg="http://schemas.microsoft.com/office/2006/xmlPackage">
      4     <pkg:part pkg:name="/_rels/.rels" pkg:contentType="application/vnd.openxmlformats-package.relationships+xml" pkg:padding="512">
      5         <pkg:xmlData>
      6             <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
      7                 <Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/>
      8                 <Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/>
      9                 <Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="word/document.xml"/>
     10             </Relationships>
     11         </pkg:xmlData>
     12     </pkg:part>
     13     <pkg:part pkg:name="/word/_rels/document.xml.rels" pkg:contentType="application/vnd.openxmlformats-package.relationships+xml" pkg:padding="256">
     14         <pkg:xmlData>
     15             <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
     16                 <Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings" Target="webSettings.xml"/>
     17                 <Relationship Id="rId7" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml"/>
     18                 <Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings" Target="settings.xml"/>
     19                 <Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/>
     20                 <Relationship Id="rId6" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable" Target="fontTable.xml"/>
     21                 <Relationship Id="rId5" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes" Target="endnotes.xml"/>
     22                 <Relationship Id="rId4" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes" Target="footnotes.xml"/>
     23             </Relationships>
     24         </pkg:xmlData>
     25     </pkg:part>
     26     <pkg:part pkg:name="/word/document.xml" pkg:contentType="application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml">
     27         <pkg:xmlData>
     28             <w:document xmlns:ve="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml">
     29                 <w:body>
     30                     <w:p w:rsidR="000B3238" w:rsidRDefault="000B3238" w:rsidP="000B3238">
     31                         <w:pPr>
     32                             <w:jc w:val="center"/>
     33                             <w:rPr>
     34                                 <w:rFonts w:asciiTheme="minorEastAsia" w:hAnsiTheme="minorEastAsia"/>
     35                                 <w:b/>
     36                                 <w:sz w:val="52"/>
     37                                 <w:szCs w:val="52"/>
     38                             </w:rPr>
     39                         </w:pPr>
     40                         <w:r w:rsidRPr="00B14293">
     41                             <w:rPr>
     42                                 <w:rFonts w:asciiTheme="minorEastAsia" w:hAnsiTheme="minorEastAsia" w:hint="eastAsia"/>
     43                                 <w:b/>
     44                                 <w:sz w:val="52"/>
     45                                 <w:szCs w:val="52"/>
     46                             </w:rPr>
     47                             <w:t id="biaoti">论文标题</w:t>
     48                         </w:r>
     49                     </w:p>
     50                     <w:p w:rsidR="000B3238" w:rsidRDefault="000B3238" w:rsidP="000B3238">
     51                         <w:pPr>
     52                             <w:jc w:val="center"/>
     53                             <w:rPr>
     54                                 <w:rFonts w:asciiTheme="minorEastAsia" w:hAnsiTheme="minorEastAsia"/>
     55                                 <w:b/>
     56                                 <w:sz w:val="52"/>
     57                                 <w:szCs w:val="52"/>
     58                             </w:rPr>
     59                         </w:pPr>
     60                     </w:p>
     61                     <w:p w:rsidR="000B3238" w:rsidRDefault="000B3238" w:rsidP="000B3238">
     62                         <w:pPr>
     63                             <w:jc w:val="center"/>
     64                             <w:rPr>
     65                                 <w:rFonts w:asciiTheme="minorEastAsia" w:hAnsiTheme="minorEastAsia"/>
     66                                 <w:b/>
     67                                 <w:sz w:val="32"/>
     68                                 <w:szCs w:val="52"/>
     69                             </w:rPr>
     70                         </w:pPr>
     71                         <w:r>
     72                             <w:rPr>
     73                                 <w:rFonts w:asciiTheme="minorEastAsia" w:hAnsiTheme="minorEastAsia" w:hint="eastAsia"/>
     74                                 <w:b/>
     75                                 <w:sz w:val="32"/>
     76                                 <w:szCs w:val="52"/>
     77                             </w:rPr>
     78                             <w:t id="zuozhe">作者:xxx  发表时间:xxx</w:t>
     79                         </w:r>
     80                     </w:p>
     81                     <w:p w:rsidR="000B3238" w:rsidRDefault="000B3238" w:rsidP="000B3238">
     82                         <w:pPr>
     83                             <w:jc w:val="center"/>
     84                             <w:rPr>
     85                                 <w:rFonts w:asciiTheme="minorEastAsia" w:hAnsiTheme="minorEastAsia"/>
     86                                 <w:b/>
     87                                 <w:sz w:val="32"/>
     88                                 <w:szCs w:val="52"/>
     89                             </w:rPr>
     90                         </w:pPr>
     91                     </w:p>
     92                     <w:p w:rsidR="000B3238" w:rsidRDefault="000B3238" w:rsidP="000B3238">
     93                         <w:pPr>
     94                             <w:ind w:firstLineChars="200" w:firstLine="562"/>
     95                             <w:jc w:val="left"/>
     96                             <w:rPr>
     97                                 <w:rFonts w:asciiTheme="minorEastAsia" w:hAnsiTheme="minorEastAsia"/>
     98                                 <w:b/>
     99                                 <w:sz w:val="28"/>
    100                                 <w:szCs w:val="28"/>
    101                             </w:rPr>
    102                         </w:pPr>
    103                         <w:r w:rsidRPr="00B14293">
    104                             <w:rPr>
    105                                 <w:rFonts w:asciiTheme="minorEastAsia" w:hAnsiTheme="minorEastAsia" w:hint="eastAsia"/>
    106                                 <w:b/>
    107                                 <w:sz w:val="28"/>
    108                                 <w:szCs w:val="28"/>
    109                             </w:rPr>
    110                             <w:t id="neirong">论文内容</w:t>
    111                         </w:r>
    112                     </w:p>
    113                     <w:p w:rsidR="000B3238" w:rsidRDefault="000B3238">
    114                         <w:r>
    115                             <w:rPr>
    116                                 <w:rFonts w:hint="eastAsia"/>
    117                             </w:rPr>
    118                             <w:tab/>
    119                         </w:r>
    120                     </w:p>
    121                     <w:tbl>
    122                         <w:tblPr>
    123                             <w:tblStyle w:val="a5"/>
    124                             <w:tblW w:w="0" w:type="auto"/>
    125                             <w:tblLook w:val="04A0"/>
    126                         </w:tblPr>
    127                         <w:tblGrid>
    128                             <w:gridCol w:w="2840"/>
    129                             <w:gridCol w:w="2841"/>
    130                             <w:gridCol w:w="2841"/>
    131                         </w:tblGrid>
    132                         <w:tr w:rsidR="000B3238" w:rsidTr="000B3238">
    133                             <w:tc>
    134                                 <w:tcPr>
    135                                     <w:tcW w:w="2840" w:type="dxa"/>
    136                                 </w:tcPr>
    137                                 <w:p w:rsidR="000B3238" w:rsidRDefault="000B3238">
    138                                     <w:r>
    139                                         <w:rPr>
    140                                             <w:rFonts w:hint="eastAsia"/>
    141                                         </w:rPr>
    142                                         <w:t>姓名</w:t>
    143                                     </w:r>
    144                                 </w:p>
    145                             </w:tc>
    146                             <w:tc>
    147                                 <w:tcPr>
    148                                     <w:tcW w:w="2841" w:type="dxa"/>
    149                                 </w:tcPr>
    150                                 <w:p w:rsidR="000B3238" w:rsidRDefault="000B3238">
    151                                     <w:r>
    152                                         <w:rPr>
    153                                             <w:rFonts w:hint="eastAsia"/>
    154                                         </w:rPr>
    155                                         <w:t>性别</w:t>
    156                                     </w:r>
    157                                 </w:p>
    158                             </w:tc>
    159                             <w:tc>
    160                                 <w:tcPr>
    161                                     <w:tcW w:w="2841" w:type="dxa"/>
    162                                 </w:tcPr>
    163                                 <w:p w:rsidR="000B3238" w:rsidRDefault="000B3238">
    164                                     <w:r>
    165                                         <w:rPr>
    166                                             <w:rFonts w:hint="eastAsia"/>
    167                                         </w:rPr>
    168                                         <w:t>籍贯</w:t>
    169                                     </w:r>
    170                                 </w:p>
    171                             </w:tc>
    172                         </w:tr>
    173                         <w:tr w:rsidR="000B3238" w:rsidTr="000B3238">
    174                             <w:tc>
    175                                 <w:tcPr>
    176                                     <w:tcW w:w="2840" w:type="dxa"/>
    177                                 </w:tcPr>
    178                                 <w:p w:rsidR="000B3238" w:rsidRDefault="00E87B20">
    179                                     <w:r>
    180                                         <w:rPr>
    181                                             <w:rFonts w:hint="eastAsia"/>
    182                                         </w:rPr>
    183                                         <w:t>尚晓飞</w:t>
    184                                     </w:r>
    185                                 </w:p>
    186                             </w:tc>
    187                             <w:tc>
    188                                 <w:tcPr>
    189                                     <w:tcW w:w="2841" w:type="dxa"/>
    190                                 </w:tcPr>
    191                                 <w:p w:rsidR="000B3238" w:rsidRDefault="00E87B20">
    192                                     <w:r>
    193                                         <w:rPr>
    194                                             <w:rFonts w:hint="eastAsia"/>
    195                                         </w:rPr>
    196                                         <w:t></w:t>
    197                                     </w:r>
    198                                 </w:p>
    199                             </w:tc>
    200                             <w:tc>
    201                                 <w:tcPr>
    202                                     <w:tcW w:w="2841" w:type="dxa"/>
    203                                 </w:tcPr>
    204                                 <w:p w:rsidR="000B3238" w:rsidRDefault="00E87B20">
    205                                     <w:r>
    206                                         <w:rPr>
    207                                             <w:rFonts w:hint="eastAsia"/>
    208                                         </w:rPr>
    209                                         <w:t>河南</w:t>
    210                                     </w:r>
    211                                 </w:p>
    212                             </w:tc>
    213                         </w:tr>
    214                     </w:tbl>
    215                     <w:p w:rsidR="000B3238" w:rsidRDefault="000B3238"/>
    216                     <w:sectPr w:rsidR="000B3238" w:rsidSect="008A2C20">
    217                         <w:pgSz w:w="11906" w:h="16838"/>
    218                         <w:pgMar w:top="1440" w:right="1800" w:bottom="1440" w:left="1800" w:header="851" w:footer="992" w:gutter="0"/>
    219                         <w:cols w:space="425"/>
    220                         <w:docGrid w:type="lines" w:linePitch="312"/>
    221                     </w:sectPr>
    222                 </w:body>
    223             </w:document>
    224         </pkg:xmlData>
    225     </pkg:part>
    226     <pkg:part pkg:name="/word/footnotes.xml" pkg:contentType="application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml">
    227         <pkg:xmlData>
    228             <w:footnotes xmlns:ve="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml">
    229                 <w:footnote w:type="separator" w:id="0">
    230                     <w:p w:rsidR="00A77B8E" w:rsidRDefault="00A77B8E" w:rsidP="000B3238">
    231                         <w:r>
    232                             <w:separator/>
    233                         </w:r>
    234                     </w:p>
    235                 </w:footnote>
    236                 <w:footnote w:type="continuationSeparator" w:id="1">
    237                     <w:p w:rsidR="00A77B8E" w:rsidRDefault="00A77B8E" w:rsidP="000B3238">
    238                         <w:r>
    239                             <w:continuationSeparator/>
    240                         </w:r>
    241                     </w:p>
    242                 </w:footnote>
    243             </w:footnotes>
    244         </pkg:xmlData>
    245     </pkg:part>
    246     <pkg:part pkg:name="/word/endnotes.xml" pkg:contentType="application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml">
    247         <pkg:xmlData>
    248             <w:endnotes xmlns:ve="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml">
    249                 <w:endnote w:type="separator" w:id="0">
    250                     <w:p w:rsidR="00A77B8E" w:rsidRDefault="00A77B8E" w:rsidP="000B3238">
    251                         <w:r>
    252                             <w:separator/>
    253                         </w:r>
    254                     </w:p>
    255                 </w:endnote>
    256                 <w:endnote w:type="continuationSeparator" w:id="1">
    257                     <w:p w:rsidR="00A77B8E" w:rsidRDefault="00A77B8E" w:rsidP="000B3238">
    258                         <w:r>
    259                             <w:continuationSeparator/>
    260                         </w:r>
    261                     </w:p>
    262                 </w:endnote>
    263             </w:endnotes>
    264         </pkg:xmlData>
    265     </pkg:part>
    266     <pkg:part pkg:name="/word/theme/theme1.xml" pkg:contentType="application/vnd.openxmlformats-officedocument.theme+xml">
    267         <pkg:xmlData>
    268             <a:theme name="Office 主题" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">
    269                 <a:themeElements>
    270                     <a:clrScheme name="Office">
    271                         <a:dk1>
    272                             <a:sysClr val="windowText" lastClr="000000"/>
    273                         </a:dk1>
    274                         <a:lt1>
    275                             <a:sysClr val="window" lastClr="FFFFFF"/>
    276                         </a:lt1>
    277                         <a:dk2>
    278                             <a:srgbClr val="1F497D"/>
    279                         </a:dk2>
    280                         <a:lt2>
    281                             <a:srgbClr val="EEECE1"/>
    282                         </a:lt2>
    283                         <a:accent1>
    284                             <a:srgbClr val="4F81BD"/>
    285                         </a:accent1>
    286                         <a:accent2>
    287                             <a:srgbClr val="C0504D"/>
    288                         </a:accent2>
    289                         <a:accent3>
    290                             <a:srgbClr val="9BBB59"/>
    291                         </a:accent3>
    292                         <a:accent4>
    293                             <a:srgbClr val="8064A2"/>
    294                         </a:accent4>
    295                         <a:accent5>
    296                             <a:srgbClr val="4BACC6"/>
    297                         </a:accent5>
    298                         <a:accent6>
    299                             <a:srgbClr val="F79646"/>
    300                         </a:accent6>
    301                         <a:hlink>
    302                             <a:srgbClr val="0000FF"/>
    303                         </a:hlink>
    304                         <a:folHlink>
    305                             <a:srgbClr val="800080"/>
    306                         </a:folHlink>
    307                     </a:clrScheme>
    308                     <a:fontScheme name="Office">
    309                         <a:majorFont>
    310                             <a:latin typeface="Cambria"/>
    311                             <a:ea typeface=""/>
    312                             <a:cs typeface=""/>
    313                             <a:font script="Jpan" typeface="MS ゴシック"/>
    314                             <a:font script="Hang" typeface="맑은 고딕"/>
    315                             <a:font script="Hans" typeface="宋体"/>
    316                             <a:font script="Hant" typeface="新細明體"/>
    317                             <a:font script="Arab" typeface="Times New Roman"/>
    318                             <a:font script="Hebr" typeface="Times New Roman"/>
    319                             <a:font script="Thai" typeface="Angsana New"/>
    320                             <a:font script="Ethi" typeface="Nyala"/>
    321                             <a:font script="Beng" typeface="Vrinda"/>
    322                             <a:font script="Gujr" typeface="Shruti"/>
    323                             <a:font script="Khmr" typeface="MoolBoran"/>
    324                             <a:font script="Knda" typeface="Tunga"/>
    325                             <a:font script="Guru" typeface="Raavi"/>
    326                             <a:font script="Cans" typeface="Euphemia"/>
    327                             <a:font script="Cher" typeface="Plantagenet Cherokee"/>
    328                             <a:font script="Yiii" typeface="Microsoft Yi Baiti"/>
    329                             <a:font script="Tibt" typeface="Microsoft Himalaya"/>
    330                             <a:font script="Thaa" typeface="MV Boli"/>
    331                             <a:font script="Deva" typeface="Mangal"/>
    332                             <a:font script="Telu" typeface="Gautami"/>
    333                             <a:font script="Taml" typeface="Latha"/>
    334                             <a:font script="Syrc" typeface="Estrangelo Edessa"/>
    335                             <a:font script="Orya" typeface="Kalinga"/>
    336                             <a:font script="Mlym" typeface="Kartika"/>
    337                             <a:font script="Laoo" typeface="DokChampa"/>
    338                             <a:font script="Sinh" typeface="Iskoola Pota"/>
    339                             <a:font script="Mong" typeface="Mongolian Baiti"/>
    340                             <a:font script="Viet" typeface="Times New Roman"/>
    341                             <a:font script="Uigh" typeface="Microsoft Uighur"/>
    342                         </a:majorFont>
    343                         <a:minorFont>
    344                             <a:latin typeface="Calibri"/>
    345                             <a:ea typeface=""/>
    346                             <a:cs typeface=""/>
    347                             <a:font script="Jpan" typeface="MS 明朝"/>
    348                             <a:font script="Hang" typeface="맑은 고딕"/>
    349                             <a:font script="Hans" typeface="宋体"/>
    350                             <a:font script="Hant" typeface="新細明體"/>
    351                             <a:font script="Arab" typeface="Arial"/>
    352                             <a:font script="Hebr" typeface="Arial"/>
    353                             <a:font script="Thai" typeface="Cordia New"/>
    354                             <a:font script="Ethi" typeface="Nyala"/>
    355                             <a:font script="Beng" typeface="Vrinda"/>
    356                             <a:font script="Gujr" typeface="Shruti"/>
    357                             <a:font script="Khmr" typeface="DaunPenh"/>
    358                             <a:font script="Knda" typeface="Tunga"/>
    359                             <a:font script="Guru" typeface="Raavi"/>
    360                             <a:font script="Cans" typeface="Euphemia"/>
    361                             <a:font script="Cher" typeface="Plantagenet Cherokee"/>
    362                             <a:font script="Yiii" typeface="Microsoft Yi Baiti"/>
    363                             <a:font script="Tibt" typeface="Microsoft Himalaya"/>
    364                             <a:font script="Thaa" typeface="MV Boli"/>
    365                             <a:font script="Deva" typeface="Mangal"/>
    366                             <a:font script="Telu" typeface="Gautami"/>
    367                             <a:font script="Taml" typeface="Latha"/>
    368                             <a:font script="Syrc" typeface="Estrangelo Edessa"/>
    369                             <a:font script="Orya" typeface="Kalinga"/>
    370                             <a:font script="Mlym" typeface="Kartika"/>
    371                             <a:font script="Laoo" typeface="DokChampa"/>
    372                             <a:font script="Sinh" typeface="Iskoola Pota"/>
    373                             <a:font script="Mong" typeface="Mongolian Baiti"/>
    374                             <a:font script="Viet" typeface="Arial"/>
    375                             <a:font script="Uigh" typeface="Microsoft Uighur"/>
    376                         </a:minorFont>
    377                     </a:fontScheme>
    378                     <a:fmtScheme name="Office">
    379                         <a:fillStyleLst>
    380                             <a:solidFill>
    381                                 <a:schemeClr val="phClr"/>
    382                             </a:solidFill>
    383                             <a:gradFill rotWithShape="1">
    384                                 <a:gsLst>
    385                                     <a:gs pos="0">
    386                                         <a:schemeClr val="phClr">
    387                                             <a:tint val="50000"/>
    388                                             <a:satMod val="300000"/>
    389                                         </a:schemeClr>
    390                                     </a:gs>
    391                                     <a:gs pos="35000">
    392                                         <a:schemeClr val="phClr">
    393                                             <a:tint val="37000"/>
    394                                             <a:satMod val="300000"/>
    395                                         </a:schemeClr>
    396                                     </a:gs>
    397                                     <a:gs pos="100000">
    398                                         <a:schemeClr val="phClr">
    399                                             <a:tint val="15000"/>
    400                                             <a:satMod val="350000"/>
    401                                         </a:schemeClr>
    402                                     </a:gs>
    403                                 </a:gsLst>
    404                                 <a:lin ang="16200000" scaled="1"/>
    405                             </a:gradFill>
    406                             <a:gradFill rotWithShape="1">
    407                                 <a:gsLst>
    408                                     <a:gs pos="0">
    409                                         <a:schemeClr val="phClr">
    410                                             <a:shade val="51000"/>
    411                                             <a:satMod val="130000"/>
    412                                         </a:schemeClr>
    413                                     </a:gs>
    414                                     <a:gs pos="80000">
    415                                         <a:schemeClr val="phClr">
    416                                             <a:shade val="93000"/>
    417                                             <a:satMod val="130000"/>
    418                                         </a:schemeClr>
    419                                     </a:gs>
    420                                     <a:gs pos="100000">
    421                                         <a:schemeClr val="phClr">
    422                                             <a:shade val="94000"/>
    423                                             <a:satMod val="135000"/>
    424                                         </a:schemeClr>
    425                                     </a:gs>
    426                                 </a:gsLst>
    427                                 <a:lin ang="16200000" scaled="0"/>
    428                             </a:gradFill>
    429                         </a:fillStyleLst>
    430                         <a:lnStyleLst>
    431                             <a:ln w="9525" cap="flat" cmpd="sng" algn="ctr">
    432                                 <a:solidFill>
    433                                     <a:schemeClr val="phClr">
    434                                         <a:shade val="95000"/>
    435                                         <a:satMod val="105000"/>
    436                                     </a:schemeClr>
    437                                 </a:solidFill>
    438                                 <a:prstDash val="solid"/>
    439                             </a:ln>
    440                             <a:ln w="25400" cap="flat" cmpd="sng" algn="ctr">
    441                                 <a:solidFill>
    442                                     <a:schemeClr val="phClr"/>
    443                                 </a:solidFill>
    444                                 <a:prstDash val="solid"/>
    445                             </a:ln>
    446                             <a:ln w="38100" cap="flat" cmpd="sng" algn="ctr">
    447                                 <a:solidFill>
    448                                     <a:schemeClr val="phClr"/>
    449                                 </a:solidFill>
    450                                 <a:prstDash val="solid"/>
    451                             </a:ln>
    452                         </a:lnStyleLst>
    453                         <a:effectStyleLst>
    454                             <a:effectStyle>
    455                                 <a:effectLst>
    456                                     <a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0">
    457                                         <a:srgbClr val="000000">
    458                                             <a:alpha val="38000"/>
    459                                         </a:srgbClr>
    460                                     </a:outerShdw>
    461                                 </a:effectLst>
    462                             </a:effectStyle>
    463                             <a:effectStyle>
    464                                 <a:effectLst>
    465                                     <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0">
    466                                         <a:srgbClr val="000000">
    467                                             <a:alpha val="35000"/>
    468                                         </a:srgbClr>
    469                                     </a:outerShdw>
    470                                 </a:effectLst>
    471                             </a:effectStyle>
    472                             <a:effectStyle>
    473                                 <a:effectLst>
    474                                     <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0">
    475                                         <a:srgbClr val="000000">
    476                                             <a:alpha val="35000"/>
    477                                         </a:srgbClr>
    478                                     </a:outerShdw>
    479                                 </a:effectLst>
    480                                 <a:scene3d>
    481                                     <a:camera prst="orthographicFront">
    482                                         <a:rot lat="0" lon="0" rev="0"/>
    483                                     </a:camera>
    484                                     <a:lightRig rig="threePt" dir="t">
    485                                         <a:rot lat="0" lon="0" rev="1200000"/>
    486                                     </a:lightRig>
    487                                 </a:scene3d>
    488                                 <a:sp3d>
    489                                     <a:bevelT w="63500" h="25400"/>
    490                                 </a:sp3d>
    491                             </a:effectStyle>
    492                         </a:effectStyleLst>
    493                         <a:bgFillStyleLst>
    494                             <a:solidFill>
    495                                 <a:schemeClr val="phClr"/>
    496                             </a:solidFill>
    497                             <a:gradFill rotWithShape="1">
    498                                 <a:gsLst>
    499                                     <a:gs pos="0">
    500                                         <a:schemeClr val="phClr">
    501                                             <a:tint val="40000"/>
    502                                             <a:satMod val="350000"/>
    503                                         </a:schemeClr>
    504                                     </a:gs>
    505                                     <a:gs pos="40000">
    506                                         <a:schemeClr val="phClr">
    507                                             <a:tint val="45000"/>
    508                                             <a:shade val="99000"/>
    509                                             <a:satMod val="350000"/>
    510                                         </a:schemeClr>
    511                                     </a:gs>
    512                                     <a:gs pos="100000">
    513                                         <a:schemeClr val="phClr">
    514                                             <a:shade val="20000"/>
    515                                             <a:satMod val="255000"/>
    516                                         </a:schemeClr>
    517                                     </a:gs>
    518                                 </a:gsLst>
    519                                 <a:path path="circle">
    520                                     <a:fillToRect l="50000" t="-80000" r="50000" b="180000"/>
    521                                 </a:path>
    522                             </a:gradFill>
    523                             <a:gradFill rotWithShape="1">
    524                                 <a:gsLst>
    525                                     <a:gs pos="0">
    526                                         <a:schemeClr val="phClr">
    527                                             <a:tint val="80000"/>
    528                                             <a:satMod val="300000"/>
    529                                         </a:schemeClr>
    530                                     </a:gs>
    531                                     <a:gs pos="100000">
    532                                         <a:schemeClr val="phClr">
    533                                             <a:shade val="30000"/>
    534                                             <a:satMod val="200000"/>
    535                                         </a:schemeClr>
    536                                     </a:gs>
    537                                 </a:gsLst>
    538                                 <a:path path="circle">
    539                                     <a:fillToRect l="50000" t="50000" r="50000" b="50000"/>
    540                                 </a:path>
    541                             </a:gradFill>
    542                         </a:bgFillStyleLst>
    543                     </a:fmtScheme>
    544                 </a:themeElements>
    545                 <a:objectDefaults/>
    546                 <a:extraClrSchemeLst/>
    547             </a:theme>
    548         </pkg:xmlData>
    549     </pkg:part>
    550     <pkg:part pkg:name="/word/settings.xml" pkg:contentType="application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml">
    551         <pkg:xmlData>
    552             <w:settings xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:sl="http://schemas.openxmlformats.org/schemaLibrary/2006/main">
    553                 <w:zoom w:percent="100"/>
    554                 <w:bordersDoNotSurroundHeader/>
    555                 <w:bordersDoNotSurroundFooter/>
    556                 <w:defaultTabStop w:val="420"/>
    557                 <w:drawingGridVerticalSpacing w:val="156"/>
    558                 <w:displayHorizontalDrawingGridEvery w:val="0"/>
    559                 <w:displayVerticalDrawingGridEvery w:val="2"/>
    560                 <w:characterSpacingControl w:val="compressPunctuation"/>
    561                 <w:hdrShapeDefaults>
    562                     <o:shapedefaults v:ext="edit" spidmax="7170"/>
    563                 </w:hdrShapeDefaults>
    564                 <w:footnotePr>
    565                     <w:footnote w:id="0"/>
    566                     <w:footnote w:id="1"/>
    567                 </w:footnotePr>
    568                 <w:endnotePr>
    569                     <w:endnote w:id="0"/>
    570                     <w:endnote w:id="1"/>
    571                 </w:endnotePr>
    572                 <w:compat>
    573                     <w:spaceForUL/>
    574                     <w:balanceSingleByteDoubleByteWidth/>
    575                     <w:doNotLeaveBackslashAlone/>
    576                     <w:ulTrailSpace/>
    577                     <w:doNotExpandShiftReturn/>
    578                     <w:adjustLineHeightInTable/>
    579                     <w:useFELayout/>
    580                 </w:compat>
    581                 <w:rsids>
    582                     <w:rsidRoot w:val="000B3238"/>
    583                     <w:rsid w:val="000B3238"/>
    584                     <w:rsid w:val="00102BA8"/>
    585                     <w:rsid w:val="00343934"/>
    586                     <w:rsid w:val="00676FED"/>
    587                     <w:rsid w:val="008A2C20"/>
    588                     <w:rsid w:val="00A77B8E"/>
    589                     <w:rsid w:val="00CA1BBE"/>
    590                     <w:rsid w:val="00E87B20"/>
    591                 </w:rsids>
    592                 <m:mathPr>
    593                     <m:mathFont m:val="Cambria Math"/>
    594                     <m:brkBin m:val="before"/>
    595                     <m:brkBinSub m:val="--"/>
    596                     <m:smallFrac m:val="off"/>
    597                     <m:dispDef/>
    598                     <m:lMargin m:val="0"/>
    599                     <m:rMargin m:val="0"/>
    600                     <m:defJc m:val="centerGroup"/>
    601                     <m:wrapIndent m:val="1440"/>
    602                     <m:intLim m:val="subSup"/>
    603                     <m:naryLim m:val="undOvr"/>
    604                 </m:mathPr>
    605                 <w:themeFontLang w:val="en-US" w:eastAsia="zh-CN"/>
    606                 <w:clrSchemeMapping w:bg1="light1" w:t1="dark1" w:bg2="light2" w:t2="dark2" w:accent1="accent1" w:accent2="accent2" w:accent3="accent3" w:accent4="accent4" w:accent5="accent5" w:accent6="accent6" w:hyperlink="hyperlink" w:followedHyperlink="followedHyperlink"/>
    607                 <w:shapeDefaults>
    608                     <o:shapedefaults v:ext="edit" spidmax="7170"/>
    609                     <o:shapelayout v:ext="edit">
    610                         <o:idmap v:ext="edit" data="2"/>
    611                     </o:shapelayout>
    612                 </w:shapeDefaults>
    613                 <w:decimalSymbol w:val="."/>
    614                 <w:listSeparator w:val=","/>
    615             </w:settings>
    616         </pkg:xmlData>
    617     </pkg:part>
    618     <pkg:part pkg:name="/word/webSettings.xml" pkg:contentType="application/vnd.openxmlformats-officedocument.wordprocessingml.webSettings+xml">
    619         <pkg:xmlData>
    620             <w:webSettings xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
    621                 <w:optimizeForBrowser/>
    622             </w:webSettings>
    623         </pkg:xmlData>
    624     </pkg:part>
    625     <pkg:part pkg:name="/docProps/core.xml" pkg:contentType="application/vnd.openxmlformats-package.core-properties+xml" pkg:padding="256">
    626         <pkg:xmlData>
    627             <cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    628                 <dc:creator>admin</dc:creator>
    629                 <cp:lastModifiedBy>admin</cp:lastModifiedBy>
    630                 <cp:revision>4</cp:revision>
    631                 <dcterms:created xsi:type="dcterms:W3CDTF">2014-10-14T09:04:00Z</dcterms:created>
    632                 <dcterms:modified xsi:type="dcterms:W3CDTF">2014-10-15T00:38:00Z</dcterms:modified>
    633             </cp:coreProperties>
    634         </pkg:xmlData>
    635     </pkg:part>
    636     <pkg:part pkg:name="/word/styles.xml" pkg:contentType="application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml">
    637         <pkg:xmlData>
    638             <w:styles xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
    639                 <w:docDefaults>
    640                     <w:rPrDefault>
    641                         <w:rPr>
    642                             <w:rFonts w:asciiTheme="minorHAnsi" w:eastAsiaTheme="minorEastAsia" w:hAnsiTheme="minorHAnsi" w:cstheme="minorBidi"/>
    643                             <w:kern w:val="2"/>
    644                             <w:sz w:val="21"/>
    645                             <w:szCs w:val="22"/>
    646                             <w:lang w:val="en-US" w:eastAsia="zh-CN" w:bidi="ar-SA"/>
    647                         </w:rPr>
    648                     </w:rPrDefault>
    649                     <w:pPrDefault/>
    650                 </w:docDefaults>
    651                 <w:latentStyles w:defLockedState="0" w:defUIPriority="99" w:defSemiHidden="1" w:defUnhideWhenUsed="1" w:defQFormat="0" w:count="267">
    652                     <w:lsdException w:name="Normal" w:semiHidden="0" w:uiPriority="0" w:unhideWhenUsed="0" w:qFormat="1"/>
    653                     <w:lsdException w:name="heading 1" w:semiHidden="0" w:uiPriority="9" w:unhideWhenUsed="0" w:qFormat="1"/>
    654                     <w:lsdException w:name="heading 2" w:uiPriority="9" w:qFormat="1"/>
    655                     <w:lsdException w:name="heading 3" w:uiPriority="9" w:qFormat="1"/>
    656                     <w:lsdException w:name="heading 4" w:uiPriority="9" w:qFormat="1"/>
    657                     <w:lsdException w:name="heading 5" w:uiPriority="9" w:qFormat="1"/>
    658                     <w:lsdException w:name="heading 6" w:uiPriority="9" w:qFormat="1"/>
    659                     <w:lsdException w:name="heading 7" w:uiPriority="9" w:qFormat="1"/>
    660                     <w:lsdException w:name="heading 8" w:uiPriority="9" w:qFormat="1"/>
    661                     <w:lsdException w:name="heading 9" w:uiPriority="9" w:qFormat="1"/>
    662                     <w:lsdException w:name="toc 1" w:uiPriority="39"/>
    663                     <w:lsdException w:name="toc 2" w:uiPriority="39"/>
    664                     <w:lsdException w:name="toc 3" w:uiPriority="39"/>
    665                     <w:lsdException w:name="toc 4" w:uiPriority="39"/>
    666                     <w:lsdException w:name="toc 5" w:uiPriority="39"/>
    667                     <w:lsdException w:name="toc 6" w:uiPriority="39"/>
    668                     <w:lsdException w:name="toc 7" w:uiPriority="39"/>
    669                     <w:lsdException w:name="toc 8" w:uiPriority="39"/>
    670                     <w:lsdException w:name="toc 9" w:uiPriority="39"/>
    671                     <w:lsdException w:name="caption" w:uiPriority="35" w:qFormat="1"/>
    672                     <w:lsdException w:name="Title" w:semiHidden="0" w:uiPriority="10" w:unhideWhenUsed="0" w:qFormat="1"/>
    673                     <w:lsdException w:name="Default Paragraph Font" w:uiPriority="1"/>
    674                     <w:lsdException w:name="Subtitle" w:semiHidden="0" w:uiPriority="11" w:unhideWhenUsed="0" w:qFormat="1"/>
    675                     <w:lsdException w:name="Strong" w:semiHidden="0" w:uiPriority="22" w:unhideWhenUsed="0" w:qFormat="1"/>
    676                     <w:lsdException w:name="Emphasis" w:semiHidden="0" w:uiPriority="20" w:unhideWhenUsed="0" w:qFormat="1"/>
    677                     <w:lsdException w:name="Table Grid" w:semiHidden="0" w:uiPriority="59" w:unhideWhenUsed="0"/>
    678                     <w:lsdException w:name="Placeholder Text" w:unhideWhenUsed="0"/>
    679                     <w:lsdException w:name="No Spacing" w:semiHidden="0" w:uiPriority="1" w:unhideWhenUsed="0" w:qFormat="1"/>
    680                     <w:lsdException w:name="Light Shading" w:semiHidden="0" w:uiPriority="60" w:unhideWhenUsed="0"/>
    681                     <w:lsdException w:name="Light List" w:semiHidden="0" w:uiPriority="61" w:unhideWhenUsed="0"/>
    682                     <w:lsdException w:name="Light Grid" w:semiHidden="0" w:uiPriority="62" w:unhideWhenUsed="0"/>
    683                     <w:lsdException w:name="Medium Shading 1" w:semiHidden="0" w:uiPriority="63" w:unhideWhenUsed="0"/>
    684                     <w:lsdException w:name="Medium Shading 2" w:semiHidden="0" w:uiPriority="64" w:unhideWhenUsed="0"/>
    685                     <w:lsdException w:name="Medium List 1" w:semiHidden="0" w:uiPriority="65" w:unhideWhenUsed="0"/>
    686                     <w:lsdException w:name="Medium List 2" w:semiHidden="0" w:uiPriority="66" w:unhideWhenUsed="0"/>
    687                     <w:lsdException w:name="Medium Grid 1" w:semiHidden="0" w:uiPriority="67" w:unhideWhenUsed="0"/>
    688                     <w:lsdException w:name="Medium Grid 2" w:semiHidden="0" w:uiPriority="68" w:unhideWhenUsed="0"/>
    689                     <w:lsdException w:name="Medium Grid 3" w:semiHidden="0" w:uiPriority="69" w:unhideWhenUsed="0"/>
    690                     <w:lsdException w:name="Dark List" w:semiHidden="0" w:uiPriority="70" w:unhideWhenUsed="0"/>
    691                     <w:lsdException w:name="Colorful Shading" w:semiHidden="0" w:uiPriority="71" w:unhideWhenUsed="0"/>
    692                     <w:lsdException w:name="Colorful List" w:semiHidden="0" w:uiPriority="72" w:unhideWhenUsed="0"/>
    693                     <w:lsdException w:name="Colorful Grid" w:semiHidden="0" w:uiPriority="73" w:unhideWhenUsed="0"/>
    694                     <w:lsdException w:name="Light Shading Accent 1" w:semiHidden="0" w:uiPriority="60" w:unhideWhenUsed="0"/>
    695                     <w:lsdException w:name="Light List Accent 1" w:semiHidden="0" w:uiPriority="61" w:unhideWhenUsed="0"/>
    696                     <w:lsdException w:name="Light Grid Accent 1" w:semiHidden="0" w:uiPriority="62" w:unhideWhenUsed="0"/>
    697                     <w:lsdException w:name="Medium Shading 1 Accent 1" w:semiHidden="0" w:uiPriority="63" w:unhideWhenUsed="0"/>
    698                     <w:lsdException w:name="Medium Shading 2 Accent 1" w:semiHidden="0" w:uiPriority="64" w:unhideWhenUsed="0"/>
    699                     <w:lsdException w:name="Medium List 1 Accent 1" w:semiHidden="0" w:uiPriority="65" w:unhideWhenUsed="0"/>
    700                     <w:lsdException w:name="Revision" w:unhideWhenUsed="0"/>
    701                     <w:lsdException w:name="List Paragraph" w:semiHidden="0" w:uiPriority="34" w:unhideWhenUsed="0" w:qFormat="1"/>
    702                     <w:lsdException w:name="Quote" w:semiHidden="0" w:uiPriority="29" w:unhideWhenUsed="0" w:qFormat="1"/>
    703                     <w:lsdException w:name="Intense Quote" w:semiHidden="0" w:uiPriority="30" w:unhideWhenUsed="0" w:qFormat="1"/>
    704                     <w:lsdException w:name="Medium List 2 Accent 1" w:semiHidden="0" w:uiPriority="66" w:unhideWhenUsed="0"/>
    705                     <w:lsdException w:name="Medium Grid 1 Accent 1" w:semiHidden="0" w:uiPriority="67" w:unhideWhenUsed="0"/>
    706                     <w:lsdException w:name="Medium Grid 2 Accent 1" w:semiHidden="0" w:uiPriority="68" w:unhideWhenUsed="0"/>
    707                     <w:lsdException w:name="Medium Grid 3 Accent 1" w:semiHidden="0" w:uiPriority="69" w:unhideWhenUsed="0"/>
    708                     <w:lsdException w:name="Dark List Accent 1" w:semiHidden="0" w:uiPriority="70" w:unhideWhenUsed="0"/>
    709                     <w:lsdException w:name="Colorful Shading Accent 1" w:semiHidden="0" w:uiPriority="71" w:unhideWhenUsed="0"/>
    710                     <w:lsdException w:name="Colorful List Accent 1" w:semiHidden="0" w:uiPriority="72" w:unhideWhenUsed="0"/>
    711                     <w:lsdException w:name="Colorful Grid Accent 1" w:semiHidden="0" w:uiPriority="73" w:unhideWhenUsed="0"/>
    712                     <w:lsdException w:name="Light Shading Accent 2" w:semiHidden="0" w:uiPriority="60" w:unhideWhenUsed="0"/>
    713                     <w:lsdException w:name="Light List Accent 2" w:semiHidden="0" w:uiPriority="61" w:unhideWhenUsed="0"/>
    714                     <w:lsdException w:name="Light Grid Accent 2" w:semiHidden="0" w:uiPriority="62" w:unhideWhenUsed="0"/>
    715                     <w:lsdException w:name="Medium Shading 1 Accent 2" w:semiHidden="0" w:uiPriority="63" w:unhideWhenUsed="0"/>
    716                     <w:lsdException w:name="Medium Shading 2 Accent 2" w:semiHidden="0" w:uiPriority="64" w:unhideWhenUsed="0"/>
    717                     <w:lsdException w:name="Medium List 1 Accent 2" w:semiHidden="0" w:uiPriority="65" w:unhideWhenUsed="0"/>
    718                     <w:lsdException w:name="Medium List 2 Accent 2" w:semiHidden="0" w:uiPriority="66" w:unhideWhenUsed="0"/>
    719                     <w:lsdException w:name="Medium Grid 1 Accent 2" w:semiHidden="0" w:uiPriority="67" w:unhideWhenUsed="0"/>
    720                     <w:lsdException w:name="Medium Grid 2 Accent 2" w:semiHidden="0" w:uiPriority="68" w:unhideWhenUsed="0"/>
    721                     <w:lsdException w:name="Medium Grid 3 Accent 2" w:semiHidden="0" w:uiPriority="69" w:unhideWhenUsed="0"/>
    722                     <w:lsdException w:name="Dark List Accent 2" w:semiHidden="0" w:uiPriority="70" w:unhideWhenUsed="0"/>
    723                     <w:lsdException w:name="Colorful Shading Accent 2" w:semiHidden="0" w:uiPriority="71" w:unhideWhenUsed="0"/>
    724                     <w:lsdException w:name="Colorful List Accent 2" w:semiHidden="0" w:uiPriority="72" w:unhideWhenUsed="0"/>
    725                     <w:lsdException w:name="Colorful Grid Accent 2" w:semiHidden="0" w:uiPriority="73" w:unhideWhenUsed="0"/>
    726                     <w:lsdException w:name="Light Shading Accent 3" w:semiHidden="0" w:uiPriority="60" w:unhideWhenUsed="0"/>
    727                     <w:lsdException w:name="Light List Accent 3" w:semiHidden="0" w:uiPriority="61" w:unhideWhenUsed="0"/>
    728                     <w:lsdException w:name="Light Grid Accent 3" w:semiHidden="0" w:uiPriority="62" w:unhideWhenUsed="0"/>
    729                     <w:lsdException w:name="Medium Shading 1 Accent 3" w:semiHidden="0" w:uiPriority="63" w:unhideWhenUsed="0"/>
    730                     <w:lsdException w:name="Medium Shading 2 Accent 3" w:semiHidden="0" w:uiPriority="64" w:unhideWhenUsed="0"/>
    731                     <w:lsdException w:name="Medium List 1 Accent 3" w:semiHidden="0" w:uiPriority="65" w:unhideWhenUsed="0"/>
    732                     <w:lsdException w:name="Medium List 2 Accent 3" w:semiHidden="0" w:uiPriority="66" w:unhideWhenUsed="0"/>
    733                     <w:lsdException w:name="Medium Grid 1 Accent 3" w:semiHidden="0" w:uiPriority="67" w:unhideWhenUsed="0"/>
    734                     <w:lsdException w:name="Medium Grid 2 Accent 3" w:semiHidden="0" w:uiPriority="68" w:unhideWhenUsed="0"/>
    735                     <w:lsdException w:name="Medium Grid 3 Accent 3" w:semiHidden="0" w:uiPriority="69" w:unhideWhenUsed="0"/>
    736                     <w:lsdException w:name="Dark List Accent 3" w:semiHidden="0" w:uiPriority="70" w:unhideWhenUsed="0"/>
    737                     <w:lsdException w:name="Colorful Shading Accent 3" w:semiHidden="0" w:uiPriority="71" w:unhideWhenUsed="0"/>
    738                     <w:lsdException w:name="Colorful List Accent 3" w:semiHidden="0" w:uiPriority="72" w:unhideWhenUsed="0"/>
    739                     <w:lsdException w:name="Colorful Grid Accent 3" w:semiHidden="0" w:uiPriority="73" w:unhideWhenUsed="0"/>
    740                     <w:lsdException w:name="Light Shading Accent 4" w:semiHidden="0" w:uiPriority="60" w:unhideWhenUsed="0"/>
    741                     <w:lsdException w:name="Light List Accent 4" w:semiHidden="0" w:uiPriority="61" w:unhideWhenUsed="0"/>
    742                     <w:lsdException w:name="Light Grid Accent 4" w:semiHidden="0" w:uiPriority="62" w:unhideWhenUsed="0"/>
    743                     <w:lsdException w:name="Medium Shading 1 Accent 4" w:semiHidden="0" w:uiPriority="63" w:unhideWhenUsed="0"/>
    744                     <w:lsdException w:name="Medium Shading 2 Accent 4" w:semiHidden="0" w:uiPriority="64" w:unhideWhenUsed="0"/>
    745                     <w:lsdException w:name="Medium List 1 Accent 4" w:semiHidden="0" w:uiPriority="65" w:unhideWhenUsed="0"/>
    746                     <w:lsdException w:name="Medium List 2 Accent 4" w:semiHidden="0" w:uiPriority="66" w:unhideWhenUsed="0"/>
    747                     <w:lsdException w:name="Medium Grid 1 Accent 4" w:semiHidden="0" w:uiPriority="67" w:unhideWhenUsed="0"/>
    748                     <w:lsdException w:name="Medium Grid 2 Accent 4" w:semiHidden="0" w:uiPriority="68" w:unhideWhenUsed="0"/>
    749                     <w:lsdException w:name="Medium Grid 3 Accent 4" w:semiHidden="0" w:uiPriority="69" w:unhideWhenUsed="0"/>
    750                     <w:lsdException w:name="Dark List Accent 4" w:semiHidden="0" w:uiPriority="70" w:unhideWhenUsed="0"/>
    751                     <w:lsdException w:name="Colorful Shading Accent 4" w:semiHidden="0" w:uiPriority="71" w:unhideWhenUsed="0"/>
    752                     <w:lsdException w:name="Colorful List Accent 4" w:semiHidden="0" w:uiPriority="72" w:unhideWhenUsed="0"/>
    753                     <w:lsdException w:name="Colorful Grid Accent 4" w:semiHidden="0" w:uiPriority="73" w:unhideWhenUsed="0"/>
    754                     <w:lsdException w:name="Light Shading Accent 5" w:semiHidden="0" w:uiPriority="60" w:unhideWhenUsed="0"/>
    755                     <w:lsdException w:name="Light List Accent 5" w:semiHidden="0" w:uiPriority="61" w:unhideWhenUsed="0"/>
    756                     <w:lsdException w:name="Light Grid Accent 5" w:semiHidden="0" w:uiPriority="62" w:unhideWhenUsed="0"/>
    757                     <w:lsdException w:name="Medium Shading 1 Accent 5" w:semiHidden="0" w:uiPriority="63" w:unhideWhenUsed="0"/>
    758                     <w:lsdException w:name="Medium Shading 2 Accent 5" w:semiHidden="0" w:uiPriority="64" w:unhideWhenUsed="0"/>
    759                     <w:lsdException w:name="Medium List 1 Accent 5" w:semiHidden="0" w:uiPriority="65" w:unhideWhenUsed="0"/>
    760                     <w:lsdException w:name="Medium List 2 Accent 5" w:semiHidden="0" w:uiPriority="66" w:unhideWhenUsed="0"/>
    761                     <w:lsdException w:name="Medium Grid 1 Accent 5" w:semiHidden="0" w:uiPriority="67" w:unhideWhenUsed="0"/>
    762                     <w:lsdException w:name="Medium Grid 2 Accent 5" w:semiHidden="0" w:uiPriority="68" w:unhideWhenUsed="0"/>
    763                     <w:lsdException w:name="Medium Grid 3 Accent 5" w:semiHidden="0" w:uiPriority="69" w:unhideWhenUsed="0"/>
    764                     <w:lsdException w:name="Dark List Accent 5" w:semiHidden="0" w:uiPriority="70" w:unhideWhenUsed="0"/>
    765                     <w:lsdException w:name="Colorful Shading Accent 5" w:semiHidden="0" w:uiPriority="71" w:unhideWhenUsed="0"/>
    766                     <w:lsdException w:name="Colorful List Accent 5" w:semiHidden="0" w:uiPriority="72" w:unhideWhenUsed="0"/>
    767                     <w:lsdException w:name="Colorful Grid Accent 5" w:semiHidden="0" w:uiPriority="73" w:unhideWhenUsed="0"/>
    768                     <w:lsdException w:name="Light Shading Accent 6" w:semiHidden="0" w:uiPriority="60" w:unhideWhenUsed="0"/>
    769                     <w:lsdException w:name="Light List Accent 6" w:semiHidden="0" w:uiPriority="61" w:unhideWhenUsed="0"/>
    770                     <w:lsdException w:name="Light Grid Accent 6" w:semiHidden="0" w:uiPriority="62" w:unhideWhenUsed="0"/>
    771                     <w:lsdException w:name="Medium Shading 1 Accent 6" w:semiHidden="0" w:uiPriority="63" w:unhideWhenUsed="0"/>
    772                     <w:lsdException w:name="Medium Shading 2 Accent 6" w:semiHidden="0" w:uiPriority="64" w:unhideWhenUsed="0"/>
    773                     <w:lsdException w:name="Medium List 1 Accent 6" w:semiHidden="0" w:uiPriority="65" w:unhideWhenUsed="0"/>
    774                     <w:lsdException w:name="Medium List 2 Accent 6" w:semiHidden="0" w:uiPriority="66" w:unhideWhenUsed="0"/>
    775                     <w:lsdException w:name="Medium Grid 1 Accent 6" w:semiHidden="0" w:uiPriority="67" w:unhideWhenUsed="0"/>
    776                     <w:lsdException w:name="Medium Grid 2 Accent 6" w:semiHidden="0" w:uiPriority="68" w:unhideWhenUsed="0"/>
    777                     <w:lsdException w:name="Medium Grid 3 Accent 6" w:semiHidden="0" w:uiPriority="69" w:unhideWhenUsed="0"/>
    778                     <w:lsdException w:name="Dark List Accent 6" w:semiHidden="0" w:uiPriority="70" w:unhideWhenUsed="0"/>
    779                     <w:lsdException w:name="Colorful Shading Accent 6" w:semiHidden="0" w:uiPriority="71" w:unhideWhenUsed="0"/>
    780                     <w:lsdException w:name="Colorful List Accent 6" w:semiHidden="0" w:uiPriority="72" w:unhideWhenUsed="0"/>
    781                     <w:lsdException w:name="Colorful Grid Accent 6" w:semiHidden="0" w:uiPriority="73" w:unhideWhenUsed="0"/>
    782                     <w:lsdException w:name="Subtle Emphasis" w:semiHidden="0" w:uiPriority="19" w:unhideWhenUsed="0" w:qFormat="1"/>
    783                     <w:lsdException w:name="Intense Emphasis" w:semiHidden="0" w:uiPriority="21" w:unhideWhenUsed="0" w:qFormat="1"/>
    784                     <w:lsdException w:name="Subtle Reference" w:semiHidden="0" w:uiPriority="31" w:unhideWhenUsed="0" w:qFormat="1"/>
    785                     <w:lsdException w:name="Intense Reference" w:semiHidden="0" w:uiPriority="32" w:unhideWhenUsed="0" w:qFormat="1"/>
    786                     <w:lsdException w:name="Book Title" w:semiHidden="0" w:uiPriority="33" w:unhideWhenUsed="0" w:qFormat="1"/>
    787                     <w:lsdException w:name="Bibliography" w:uiPriority="37"/>
    788                     <w:lsdException w:name="TOC Heading" w:uiPriority="39" w:qFormat="1"/>
    789                 </w:latentStyles>
    790                 <w:style w:type="paragraph" w:default="1" w:styleId="a">
    791                     <w:name w:val="Normal"/>
    792                     <w:qFormat/>
    793                     <w:rsid w:val="000B3238"/>
    794                     <w:pPr>
    795                         <w:widowControl w:val="0"/>
    796                         <w:jc w:val="both"/>
    797                     </w:pPr>
    798                 </w:style>
    799                 <w:style w:type="character" w:default="1" w:styleId="a0">
    800                     <w:name w:val="Default Paragraph Font"/>
    801                     <w:uiPriority w:val="1"/>
    802                     <w:semiHidden/>
    803                     <w:unhideWhenUsed/>
    804                 </w:style>
    805                 <w:style w:type="table" w:default="1" w:styleId="a1">
    806                     <w:name w:val="Normal Table"/>
    807                     <w:uiPriority w:val="99"/>
    808                     <w:semiHidden/>
    809                     <w:unhideWhenUsed/>
    810                     <w:qFormat/>
    811                     <w:tblPr>
    812                         <w:tblInd w:w="0" w:type="dxa"/>
    813                         <w:tblCellMar>
    814                             <w:top w:w="0" w:type="dxa"/>
    815                             <w:left w:w="108" w:type="dxa"/>
    816                             <w:bottom w:w="0" w:type="dxa"/>
    817                             <w:right w:w="108" w:type="dxa"/>
    818                         </w:tblCellMar>
    819                     </w:tblPr>
    820                 </w:style>
    821                 <w:style w:type="numbering" w:default="1" w:styleId="a2">
    822                     <w:name w:val="No List"/>
    823                     <w:uiPriority w:val="99"/>
    824                     <w:semiHidden/>
    825                     <w:unhideWhenUsed/>
    826                 </w:style>
    827                 <w:style w:type="paragraph" w:styleId="a3">
    828                     <w:name w:val="header"/>
    829                     <w:basedOn w:val="a"/>
    830                     <w:link w:val="Char"/>
    831                     <w:uiPriority w:val="99"/>
    832                     <w:semiHidden/>
    833                     <w:unhideWhenUsed/>
    834                     <w:rsid w:val="000B3238"/>
    835                     <w:pPr>
    836                         <w:pBdr>
    837                             <w:bottom w:val="single" w:sz="6" w:space="1" w:color="auto"/>
    838                         </w:pBdr>
    839                         <w:tabs>
    840                             <w:tab w:val="center" w:pos="4153"/>
    841                             <w:tab w:val="right" w:pos="8306"/>
    842                         </w:tabs>
    843                         <w:snapToGrid w:val="0"/>
    844                         <w:jc w:val="center"/>
    845                     </w:pPr>
    846                     <w:rPr>
    847                         <w:sz w:val="18"/>
    848                         <w:szCs w:val="18"/>
    849                     </w:rPr>
    850                 </w:style>
    851                 <w:style w:type="character" w:customStyle="1" w:styleId="Char">
    852                     <w:name w:val="页眉 Char"/>
    853                     <w:basedOn w:val="a0"/>
    854                     <w:link w:val="a3"/>
    855                     <w:uiPriority w:val="99"/>
    856                     <w:semiHidden/>
    857                     <w:rsid w:val="000B3238"/>
    858                     <w:rPr>
    859                         <w:sz w:val="18"/>
    860                         <w:szCs w:val="18"/>
    861                     </w:rPr>
    862                 </w:style>
    863                 <w:style w:type="paragraph" w:styleId="a4">
    864                     <w:name w:val="footer"/>
    865                     <w:basedOn w:val="a"/>
    866                     <w:link w:val="Char0"/>
    867                     <w:uiPriority w:val="99"/>
    868                     <w:semiHidden/>
    869                     <w:unhideWhenUsed/>
    870                     <w:rsid w:val="000B3238"/>
    871                     <w:pPr>
    872                         <w:tabs>
    873                             <w:tab w:val="center" w:pos="4153"/>
    874                             <w:tab w:val="right" w:pos="8306"/>
    875                         </w:tabs>
    876                         <w:snapToGrid w:val="0"/>
    877                         <w:jc w:val="left"/>
    878                     </w:pPr>
    879                     <w:rPr>
    880                         <w:sz w:val="18"/>
    881                         <w:szCs w:val="18"/>
    882                     </w:rPr>
    883                 </w:style>
    884                 <w:style w:type="character" w:customStyle="1" w:styleId="Char0">
    885                     <w:name w:val="页脚 Char"/>
    886                     <w:basedOn w:val="a0"/>
    887                     <w:link w:val="a4"/>
    888                     <w:uiPriority w:val="99"/>
    889                     <w:semiHidden/>
    890                     <w:rsid w:val="000B3238"/>
    891                     <w:rPr>
    892                         <w:sz w:val="18"/>
    893                         <w:szCs w:val="18"/>
    894                     </w:rPr>
    895                 </w:style>
    896                 <w:style w:type="table" w:styleId="a5">
    897                     <w:name w:val="Table Grid"/>
    898                     <w:basedOn w:val="a1"/>
    899                     <w:uiPriority w:val="59"/>
    900                     <w:rsid w:val="000B3238"/>
    901                     <w:tblPr>
    902                         <w:tblInd w:w="0" w:type="dxa"/>
    903                         <w:tblBorders>
    904                             <w:top w:val="single" w:sz="4" w:space="0" w:color="000000" w:themeColor="text1"/>
    905                             <w:left w:val="single" w:sz="4" w:space="0" w:color="000000" w:themeColor="text1"/>
    906                             <w:bottom w:val="single" w:sz="4" w:space="0" w:color="000000" w:themeColor="text1"/>
    907                             <w:right w:val="single" w:sz="4" w:space="0" w:color="000000" w:themeColor="text1"/>
    908                             <w:insideH w:val="single" w:sz="4" w:space="0" w:color="000000" w:themeColor="text1"/>
    909                             <w:insideV w:val="single" w:sz="4" w:space="0" w:color="000000" w:themeColor="text1"/>
    910                         </w:tblBorders>
    911                         <w:tblCellMar>
    912                             <w:top w:w="0" w:type="dxa"/>
    913                             <w:left w:w="108" w:type="dxa"/>
    914                             <w:bottom w:w="0" w:type="dxa"/>
    915                             <w:right w:w="108" w:type="dxa"/>
    916                         </w:tblCellMar>
    917                     </w:tblPr>
    918                 </w:style>
    919             </w:styles>
    920         </pkg:xmlData>
    921     </pkg:part>
    922     <pkg:part pkg:name="/word/fontTable.xml" pkg:contentType="application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml">
    923         <pkg:xmlData>
    924             <w:fonts xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
    925                 <w:font w:name="Calibri">
    926                     <w:panose1 w:val="020F0502020204030204"/>
    927                     <w:charset w:val="00"/>
    928                     <w:family w:val="swiss"/>
    929                     <w:pitch w:val="variable"/>
    930                     <w:sig w:usb0="E00002FF" w:usb1="4000ACFF" w:usb2="00000001" w:usb3="00000000" w:csb0="0000019F" w:csb1="00000000"/>
    931                 </w:font>
    932                 <w:font w:name="宋体">
    933                     <w:altName w:val="SimSun"/>
    934                     <w:panose1 w:val="02010600030101010101"/>
    935                     <w:charset w:val="86"/>
    936                     <w:family w:val="auto"/>
    937                     <w:pitch w:val="variable"/>
    938                     <w:sig w:usb0="00000003" w:usb1="288F0000" w:usb2="00000016" w:usb3="00000000" w:csb0="00040001" w:csb1="00000000"/>
    939                 </w:font>
    940                 <w:font w:name="Times New Roman">
    941                     <w:panose1 w:val="02020603050405020304"/>
    942                     <w:charset w:val="00"/>
    943                     <w:family w:val="roman"/>
    944                     <w:pitch w:val="variable"/>
    945                     <w:sig w:usb0="E0002AFF" w:usb1="C0007843" w:usb2="00000009" w:usb3="00000000" w:csb0="000001FF" w:csb1="00000000"/>
    946                 </w:font>
    947                 <w:font w:name="Cambria">
    948                     <w:panose1 w:val="02040503050406030204"/>
    949                     <w:charset w:val="00"/>
    950                     <w:family w:val="roman"/>
    951                     <w:pitch w:val="variable"/>
    952                     <w:sig w:usb0="E00002FF" w:usb1="400004FF" w:usb2="00000000" w:usb3="00000000" w:csb0="0000019F" w:csb1="00000000"/>
    953                 </w:font>
    954             </w:fonts>
    955         </pkg:xmlData>
    956     </pkg:part>
    957     <pkg:part pkg:name="/docProps/app.xml" pkg:contentType="application/vnd.openxmlformats-officedocument.extended-properties+xml" pkg:padding="256">
    958         <pkg:xmlData>
    959             <Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes">
    960                 <Template>Normal.dotm</Template>
    961                 <TotalTime>3</TotalTime>
    962                 <Pages>1</Pages>
    963                 <Words>7</Words>
    964                 <Characters>45</Characters>
    965                 <Application>Microsoft Office Word</Application>
    966                 <DocSecurity>0</DocSecurity>
    967                 <Lines>1</Lines>
    968                 <Paragraphs>1</Paragraphs>
    969                 <ScaleCrop>false</ScaleCrop>
    970                 <Company/>
    971                 <LinksUpToDate>false</LinksUpToDate>
    972                 <CharactersWithSpaces>51</CharactersWithSpaces>
    973                 <SharedDoc>false</SharedDoc>
    974                 <HyperlinksChanged>false</HyperlinksChanged>
    975                 <AppVersion>12.0000</AppVersion>
    976             </Properties>
    977         </pkg:xmlData>
    978     </pkg:part>
    979 </pkg:package>
    View Code

    【3】把数据库内容生成模板格式的word文档的代码

      1 package com.bjsxt.sxf.test;
      2 
      3 
      4 import java.io.ByteArrayInputStream;
      5 import java.io.File;
      6 import java.io.FileNotFoundException;
      7 import java.io.FileOutputStream;
      8 import java.io.OutputStream;
      9 import java.util.List;
     10 
     11 import org.apache.poi.poifs.filesystem.DirectoryEntry;
     12 import org.apache.poi.poifs.filesystem.DocumentEntry;
     13 import org.apache.poi.poifs.filesystem.POIFSFileSystem;
     14 import org.dom4j.Document;
     15 import org.dom4j.DocumentException;
     16 import org.dom4j.Element;
     17 import org.dom4j.io.SAXReader;
     18 
     19 
     20 
     21 public class javaToWord {
     22     public static void main(String[] args) throws FileNotFoundException {
     23          
     24       Document document=domfjReadXml();
     25       outPutWord(document);
     26     }
     27     
     28     /**
     29      * 解析模板moban.xml。将moban.xml的模型读入内存中,并修改模型内容,然后将修改后的模型输出成doc的word文档
     30     * @Title: domfjReadXml 
     31     * @Description: TODO(这里用一句话描述这个方法的作用) 
     32     * @return void    返回类型 
     33     * @author 尚晓飞
     34      * @throws FileNotFoundException 
     35     * @date 2014-10-14 上午10:47:12
     36      */
     37     public static  Document domfjReadXml() throws FileNotFoundException{
     38         //用dom4j读写xml文件(模版文件)  
     39         SAXReader reader = new SAXReader();  
     40         //模版文件为 : c:\moban.xml 
     41         Document document=null;
     42         try {
     43             //读取moban.xml的模板文档
     44             document = reader.read(new File("C:\moban.xml"));
     45             //获得xml的根节点
     46             Element root = document.getRootElement();
     47             //获取part节点的集合
     48             List<Element> partList=root.elements("part");
     49             //获取moban.xml中填写内容的part节点
     50             Element element=partList.get(2);
     51             //获取body的节点
     52             Element xmlDataElement=element.element("xmlData");
     53             Element doc=xmlDataElement.element("document");
     54             Element wbodys=doc.element("body");
     55             
     56             //读取相关节点信息(以下的这几个标签在xml模版文件中都是w:body,w:sect等这样的形式,但是读取的时候不能加w:,并且在增加内容的时候一定要加上w:,比如下面我们经常用到的增加p、r、t,就是要用w:p w:r w:t。  
     57             List<Element> pElements=wbodys.elements("p");
     58             //所有文字内容都添加在p节点中孙子节点t中
     59             for(Element p:pElements){
     60                    Element rElement=p.element("r");
     61                    if(rElement!=null){
     62                        Element tElement=rElement.element("t");
     63                        if(tElement!=null){
     64                            //如果t节点不为空,并且id的属性值符合要求,则往里添加内容
     65                            String idString=tElement.attributeValue("id");
     66                            //标题
     67                            if(idString!=null&&idString.equals("biaoti")){
     68                                tElement.setText("地瓜片");
     69                                 continue; 
     70                            }
     71                            
     72                            //作者
     73                            if(idString!=null&&idString.equals("zuozhe")){
     74                                tElement.setText("作者:尚晓飞     发表时间:2014-10-14");
     75                                 continue; 
     76                            }
     77                            
     78                            //内容
     79                            if(idString!=null&&idString.equals("neirong")){
     80                                tElement.setText("dom4j是一个Java的XML API,类似于jdom,用来读写XML文件的。dom4j是一个十分优秀的JavaXML API,具有性能优异、功能强大和极其易使用的特点,同时它也是一个开放源代码的软件,可以在SourceForge上找到它。在IBM developerWorks上面还可以找到一篇文章,对主流的Java XML API进行的性能、功能和易用性的评测,所以可以知道dom4j无论在哪个方面都是非常出色的。如今可以看到越来越多的Java软件都在使用dom4j来读写XML,特别值得一提的是连Sun的JAXM也在用dom4j。这已经是必须使用的jar包, Hibernate也用它来读写配置文件。");
     81                                 continue; 
     82                            }
     83                        }
     84                    }
     85                }
     86             
     87             
     88             //表格节点
     89             Element tabElement=wbodys.element("tbl");
     90            
     91             //行节点集合
     92             List<Element> treElements=tabElement.elements("tr");
     93             
     94             //内容行第一列
     95             Element neElement=treElements.get(1);
     96             //模拟循环数据库查出来的人员集合,往word里添加内容
     97             for(int i=0;i<10;i++){
     98                 //第一行保持样式,添加内容。
     99                 if(i==0){
    100                     List<Element> tclist=neElement.elements("tc");
    101                     for (int j = 0; j < tclist.size(); j++) {
    102                         Element tElement2=tclist.get(j).element("p").element("r").element("t");
    103                         //j=0是姓名
    104                         if(j==0){
    105                             tElement2.setText("黄栓磊");
    106                         }
    107                         //j=1是性别
    108                         if(j==1){
    109                             tElement2.setText("男");
    110                         }
    111                         //j=2是籍贯
    112                         if(j==2){
    113                             tElement2.setText("河南");
    114                         }
    115                     }
    116                     
    117                 }else{
    118                     //添加克隆行
    119                     Element newElement=(Element) neElement.clone();
    120                     //表格添加一行
    121                     tabElement.add(newElement);
    122                     //添加
    123                     List<Element> tclist=newElement.elements("tc");
    124                     for (int j = 0; j < tclist.size(); j++) {
    125                         Element tElement2=tclist.get(j).element("p").element("r").element("t");
    126                         //j=0是姓名
    127                         if(j==0){
    128                             tElement2.setText("东方红");
    129                         }
    130                         //j=1是性别
    131                         if(j==1){
    132                             tElement2.setText("女");
    133                         }
    134                         //j=2是籍贯
    135                         if(j==2){
    136                             tElement2.setText("中国");
    137                         }
    138                     }
    139                     
    140                     
    141                 }
    142             }
    143             
    144                   
    145                
    146         } catch (DocumentException e) {
    147             // TODO Auto-generated catch block
    148             e.printStackTrace();
    149         }  
    150        
    151         return document;
    152     }
    153     
    154     /**
    155      * 利用poi导出在内存中已经修改的模板信息,生成论文的word文档
    156     * @Title: outPutWord 
    157     * @Description: TODO(这里用一句话描述这个方法的作用) 
    158     * @param document
    159     * @return void    返回类型 
    160     * @author 尚晓飞
    161     * @date 2014-10-14 上午11:10:00
    162      */
    163     public static void outPutWord(Document document){
    164         ByteArrayInputStream bais;
    165         try {
    166             bais = new ByteArrayInputStream(document.asXML().getBytes("utf-8"));
    167             
    168             
    169             POIFSFileSystem fs = new POIFSFileSystem(); 
    170             //加工fs对象,将moban.xml修改后的内存模型与fs关联
    171             DirectoryEntry directory = fs.getRoot(); 
    172             DocumentEntry de = directory.createDocument("WordDocument", bais);
    173             
    174             //文件输出流  
    175             OutputStream fos = new FileOutputStream(new File("c:\ceshi.doc"));
    176            
    177             //将moban.xml包装成的word模型写入输出流
    178             fs.writeFilesystem(fos);  
    179             bais.close(); 
    180             //将输出流的内容推送出去
    181             fos.flush();  
    182             fos.close(); 
    183         } catch (Exception e1) {
    184             // TODO Auto-generated catch block
    185             e1.printStackTrace();
    186         }  
    187         
    188         
    189        
    190       
    191     }
    192 }
    View Code

    【4】生成后的效果图

  • 相关阅读:
    禁用网络连接后无法访问本机数据库的问题
    DevExpress使用笔记
    DEV控件 皮肤问题
    SQLServer2008导入Excel遇到的问题
    InnoSetup使用笔记
    SQLServer清空数据库中所有表的数据
    MS SQL Server2000转换成MySQL
    由MySQL登录不了引发的一些问题
    onerror事件
    DIV+CSS一些小小的技巧
  • 原文地址:https://www.cnblogs.com/shangxiaofei/p/4025620.html
Copyright © 2011-2022 走看看