With POI Word API, how to repeat a table heading on subsequent pages?

本秂侑毒 提交于 2019-12-13 05:18:45

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!