Package org.openxml4j.document.wordprocessing

Examples of org.openxml4j.document.wordprocessing.WordDocument


  private void buildTable(String inputFile, String outputFile) {
    File destFile = new File(outputFile);

    try {
      Package pack = Package.open(inputFile, PackageAccess.READ_WRITE);
      WordDocument docx = new WordDocument(pack);

      TableDescription tableDesc = buildTestData();
      // ADD TABLE TO DOC
      docx.appendTable(tableDesc);
      docx.save(destFile);
    } catch (Exception e) {
      logger.error(e);
    }
  }
View Full Code Here

TOP

Related Classes of org.openxml4j.document.wordprocessing.WordDocument

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.