Just started to use POI 3.10 to create a Word document (XWPF). Most of the things are straight forward, but I don't understand how to add page numbers. I added the footer, but the text in the footer is the same on every page
标签:
apache-poi
相关问题
- android apache poi-ooxml causes build error 'a
- Error: How to read empty cell in Excel
- Why we need to create a Workbook before reading th
- Does anyone have an example of Apache POI converti
- How to store time spent or total duration in Java?
相关文章
- How to loop through all the rows and cells in an e
- Java Apache POI newline characters are ignored whe
- How to know number of sheets in a workbook?
- How to Highlight a text for a Pargraph in MS word
- How to use Tika's XWPFWordExtractorDecorator c
- How to move position of chart in excel by Java POI
- Apache POI - Invalid part to process data
- Updating Excel sheet values based on a csv sheet w
Hope this helps.
I created a page number in the footer on the right in LibreOffice and investigated the XML file (MS Word-Std-Objects are not supported in POI which is used there for page numbers).
This will enable to create more complex footers...
to set the number to other positions set another value for ctjc instead of STJc.RIGHT...
The result is the following: