2

Is it possible to create a horizontal rule in a Word document using Apache POI? I can't find anything in the documentation that seems relevant. If not, is there some way to insert raw HTML into the document?

RustyTheBoyRobot
  • 5,891
  • 4
  • 36
  • 55

1 Answers1

6

Try this:

XWPFParagraph p1 = document.createParagraph();
p1.setBorderBottom(Borders.SINGLE);
Jesse
  • 8,605
  • 7
  • 47
  • 57
Leo
  • 61
  • 1
  • 2