问题
I am using Apache POI 3.12 for generating a Word document containing a XWPFTable. In the MS Word interface you can repeat a table heading on subsequent pages by checking a property on the table itself.
How do you do the same using the XWPFTable API ?
回答1:
In JWord that is set on Row level. There is method
row.setHeader(true);
Something similar should exist in the POI.
来源:https://stackoverflow.com/questions/34064758/with-poi-word-api-how-to-repeat-a-table-heading-on-subsequent-pages