I\'m searching for a simple example code or a complete tutorial how to create a docx file with Apache POI and its underlying openxml4j.
I t
Here is how you can create a simple docx file with POI :
XWPFDocument document = new XWPFDocument();
XWPFParagraph tmpParagraph = document.createParagraph();
XWPFRun tmpRun = tmpParagraph.createRun();
tmpRun.setText("LALALALAALALAAAA");
tmpRun.setFontSize(18);
document.write(new FileOutputStream(new File("yourpathhere")));
document.close();