SimpleTable - Apache POI Word Document Example

Q

What is SimpleTable example in the Apache POI package? How to run SimpleTable example?

✍: FYIcenter.com

A

SimpleTable example in the Apache POI package is created by Gisella Bronzetti and Gregg Morris. It creates Word documents with tables in *.docx format using POI XWPF API

SimpleTable example uses the OpenXML Word Processing Format (XWPF) API, which supports Word document in *.docx format only.

Here is the command to run SimpleTable to generate Word document in *.docx file format compatible with Microsoft Word 2007 version.

C:\fyicenter>c:\local\jdk-1.8.0\bin\java 
   -cp .;C:\local\poi-3.15\poi-examples-3.15.jar;
         C:\local\poi-3.15\poi-3.15.jar;
         C:\local\poi-3.15\poi-ooxml-3.15.jar;
         C:\local\poi-3.15\ooxml-lib\xmlbeans-2.6.0.jar;
         C:\local\poi-3.15\lib\commons-collections4-4.1.jar;
         C:\local\poi-3.15\poi-ooxml-schemas-3.15.jar 
   org.apache.poi.xwpf.usermodel.SimpleTable

If you open the output file, styledTable.docx, in Word, you will see a styled table:
Apache POI Word Document Example - SimpleTable

 

Apache POI Examples for Word Documents

⇒⇒FAQ for Apache POI (Poor Obfuscation Implementation)

2017-02-22, 253👍, 0💬