福途教育网
专业的教育资讯网站

当前位置:福途教育网 > 二级建造师 > 正文

二级建造师员培训

时间:2023/5/22 4:47:49 编辑:福途教育 标签:二级建造师

2023年【二级建造师】申请条件/费用/专业咨询 >>

二级建造师申请条件是什么?二级建造师费用是多少?二级建造师专业都有哪些?

点击咨询

    本文解答了关于《二级建造师员培训》相关内容,同时关于1、二级建造师员培训,2、2级建造师培训,3、二级建造师执业资格培训,4、二级建造师培训报考条件,5、二级建造师培训教程,的相关问答本篇文章福途教育网小编也整理了进来,希望对您有帮助。

    二级建造师员培训

    二级建造师员培训申请表");

    FileInputStream fin=new FileInputStream(file);

    HWPFDocument hwpf=new HWPFDocument(fin);

    Range range = hwpf.getRange();

    range.replaceText("${DATE}", "2010");

    range.replaceText("${NAME}", "吴义明");

    range.replaceText("${ORG}", "海洋与渔业局");

    range.replaceText("${TEL}", "(021)-666555");

    range.replaceText("${ADRESS}", "上海市虹口区江湾路367号");

    Document doc=new Document(file);

    PdfWriter.getInstance(doc, response.getOutputStream());

    doc.open();

    ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();

    hwpf.write(byteArrayOutputStream);

    byte[] byteArray = byteArrayOutputStream.toByteArray();

    ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(byteArray);

    /*FileOutputStream out=new FileOutputStream("F:\\plain\\新建 Microsoft Word 文档.doc");

    hwpf.write(out);

    out.close();*/

    HWPFDocument newhwrf=new HWPFDocument(byteArrayInputStream);

    Range newrange = newhwrf.getRange();

    /*Iterator it=newrange.getTableIterator();

    while (it.hasNext()) {

    TableIterator tableIt = it.next();

    if (tableIt.next()){

    Range mRange;

    for (int rowIdx = 0; rowIdx < tableIt.numRows(); rowIdx++){

    for (int colIdx = 0; colIdx < tableIt.getRow(rowIdx).numCells(); colIdx++){

    mRange = tableIt.getCell(rowIdx, colIdx);

    String text = mRange.text();

    System.out.println(text);

    }}

    }

    }*/

    for (int i = 0; i < newrange.numParagraphs(); i++) {

    Paragraph paragraph = newrange.getParagraph(i);

    System.out.println(paragraph.text());

    if(paragraph.text().indexOf("${")>-1){

    }

    }

    ByteArrayOutputStream byteArrayOut = new ByteArrayOutputStream();

    newhwrf.write(byteArrayOut);

    byte[] byteArray2 = byteArrayOut.toByteArray();

    ByteArrayInputStream byteArrayIn = new ByteArrayInputStream(byteArray2);

    POIFSFileSystem fs = new POIFSFileSystem();

    DirectoryEntry directory = fs.getRoot();

    DocumentEntry de = directory.createDocument("WordDocument", byteArrayIn);

    FileOutputStream ostream = new FileOutputStream("F:\\plain\\新建 Microsoft Word 文档.doc");

    fs.writeFilesystem(ostream);

    response.getWriter().println("DONE");

    }catch(Exception e){

    e.printStackTrace();

    }

    return null;

    }

    private void cla1Content(HWPFDocument hwpf,String name){

    range.replaceText("${BUYNAME1}", "张三");

    range.replaceText("${BUYNUM1}", "10件");

    range.replaceText("${BUYCOMPANY1}", "上海大欢唱");

    range.replaceText("${BUYDATES1}", "2010-12-03");

    }

    }

    总结:以上是编辑:【小恩】整理及AI智能原创关于《

    二级建造师员培训

    》优质内容解答希望能帮助到您。

以上手机版 二级建造师员培训 小编为您整理二级建造师员培训的全部内容

点击查看 二级建造师 更多内容

热门推荐

最新文章