totali
totali

Reputation: 270

Get XWPFRun From XWPFParagraph

I want create Word document from another Word document, but I need replace some text in new Word. I do it, but my problem is the new Word Document does not support the old document style. For this I can get XWPFRun from XWPFParagraph. How can I do it?

Note. Eclipse not found paragraph.getRuns() method in my situation

Upvotes: 1

Views: 1800

Answers (1)

Gagravarr
Gagravarr

Reputation: 48326

On XWPFParagraph is a getRuns() method:

public java.util.List<XWPFRun> getRuns()

That's the method you need, see the javadoc for more info.

Upvotes: 2

Related Questions