Apache POI: How do you restart numbering on a numbered list in word document?
问题 I'm trying to use Apache POI XWPF library to produce a report in a Word docx file. My approach is to use an existing Word Document as a Styles template. Within the template I defined a style named "SRINumberList". So to load the template and remove everything that's not in the Header or Footer: protected void createDocFromTemplate() { try { document = new XWPFDocument(this.getClass().getResourceAsStream(styleTemplate)); int pos = document.getBodyElements().size()-1; while (pos >= 0) {