 <p>If you want to get text from textbox in docx file (using <em>POI 3.10-FINAL</em>) here is sample code:</p> <pre><code>FileInputStream fileInputStream = new FileInputStream(inputFile); XWPFDocument document = new XWPFDocument(OPCPackage.open(fileInputStream)); for (XWPFParagraph xwpfParagraph : document.getParagraphs()) { String text = xwpfParagraph.getParagraphText(); //here is where you receive text from textbox } </code></pre> <p>Or you can iterate over each XWPFRun in XWPFParagraph and invoke toString() method. Same result.</p>