I would like to create an unordered list with bullets using docx4j in a Word document. I found the following code that should do this work. But all I am trying to do is a generated list - this is a numbered list! I am using Word 2010, the German version and docx4j-2.8.1.
wordMLPackage = WordprocessingMLPackage.createPackage(); ObjectFactory factory = new org.docx4j.wml.ObjectFactory(); P p = factory.createP(); org.docx4j.wml.Text t = factory.createText(); t.setValue(text); org.docx4j.wml.R run = factory.createR(); run.getContent().add(t); p.getContent().add(run); org.docx4j.wml.PPr ppr = factory.createPPr(); p.setPPr(ppr);
Can someone help me create a real disordered, collapsed list ?!
Laude source share