Package com.danhaywood.isis.domainservice.docx

Examples of com.danhaywood.isis.domainservice.docx.DocxService


        ByteArrayInputStream docxTemplateIs = new ByteArrayInputStream(Resources.toByteArray(templateUrl));
       
        java.io.File targetFile = new java.io.File(System.getProperty("user.dir") + "/Generated.docx");
        FileOutputStream targetFos = new FileOutputStream(targetFile);

        DocxService docxService = new DocxService();
        WordprocessingMLPackage docxTemplate = docxService.loadPackage(docxTemplateIs);
        docxService.merge(html, docxTemplate, targetFos, MatchingPolicy.LAX);
    }
View Full Code Here

TOP

Related Classes of com.danhaywood.isis.domainservice.docx.DocxService

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.