Replacing a text in Apache POI XWPF
问题 I just found Apache POI library very useful for editing Word files using Java. Specifically, I want to edit a DOCX file using Apache POI's XWPF classes. I found no proper method / documentation following which I could do this. Can somebody please explain in steps, how to replace some text in a DOCX file. ** The text may be in a line / paragraph or in a table row/column Thanks in Advance :) 回答1: The method you need is XWPFRun.setText(String). Simply work your way through the file until you