Package org.jeecgframework.web.cgform.common

Examples of org.jeecgframework.web.cgform.common.OfficeHtmlUtil


        myhtmlfilename = realPath + noextfilename + ".html";
        String myftlfilename = realPath + noextfilename + ".ftl";
        LogUtil.info("-------------------------step.4-------------------------------------");
        // 开始转换表单文件
        OfficeHtmlUtil officeHtml = new OfficeHtmlUtil();

        // 方式一:jacob.jar方式word转html
        officeHtml.wordToHtml(savePath, myhtmlfilename);
        String htmlStr = officeHtml.getInfo(myhtmlfilename);
        htmlStr = officeHtml.doHtml(htmlStr);

        // 方式二:poi方式word转html
        // officeHtml.WordConverterHtml(savePath, myhtmlfilename);
        // String htmlStr = officeHtml.getInfo(myhtmlfilename);
        // htmlStr = officeHtml.doPoiHtml(htmlStr);

        officeHtml.stringToFile(htmlStr, myftlfilename);
        // js plugin start
        StringBuilder script = new StringBuilder("");
        script.append("<script type=\"text/javascript\">");
        script.append("${js_plug_in?if_exists}");
        script.append("</script>");
View Full Code Here

TOP

Related Classes of org.jeecgframework.web.cgform.common.OfficeHtmlUtil

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.