Javatpoint Logo
Javatpoint Logo

Apache POI Creating MS Word

To create a new Microsoft word file, Apache POI provides XWPFDocument class. This class is used in Java program to handle the word document.

See, in this following example, we are creating a word file Javatpoint.docx.

Apache POI Creating MS Word Example

Output:

This example creates a .doc extension file having name Javatpoint.docx.





Help Others, Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA