Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Formatting and Justify Paragraphs in Apache POI

 
Anirudh Gaur
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone, I'm using Apache POI to generate a .docx file and need help in some things: -

1. How to get "Justify" alignment for paragraphs (there are options like BOTH, DISTRIBUTED etc).

2. I need some bold words in between the normal words in a paragraph. How to achieve this? (I'm trying to create two different "XWPFRun" but its not working, they are not appearing in the sequence in which I want..)

thanks in advance.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic