Home » Apache POI Word Paragraph

Apache POI Word Paragraph

by Online Tutorials Library

Apache POI Word Paragraph

To create a paragraph in MS word file, Apache POI provides XWPFParagraph class. This class uses XWPFRun to setText() method for the paragraph.

Lets see an example in which we are creating and writing paragraph into a word file.

Apache POI Word Paragraph Example

Output:

Apache POI Word Paragraph

You may also like