I need help, does docx4j contain API that can replace some marked text to another? For example:
Word Text: "My name is {FirstName} {LastName}. I am living in Moscow."
I want to change marked fields: {FirstName} and {LastName} to some specific text, what is the easist way to do it?
I am trying to look at Field Codes way (How you can use it "Insert > Quick Parts > Field > Field Codes" ).
The XML will contain following tag w:instrText:
- Code: Select all
<w:r w:rsidRPr="00B22DC3">
<w:rPr>
<w:b/>
<w:u w:val="single"/>
<w:lang w:val="en-US"/>
</w:rPr>
<w:instrText>MERGEFORMAT</w:instrText>
</w:r>
P.S. The technology how marked fields will be dedicated doesn't matter.
Sorry for my language:)