With POI Word API, how to repeat a table heading o

2019-09-12 04:47发布

问题:

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.