我需要在表头跨越一页以上时重复表头,甚至检测到分页符,以便我自己添加头,我正在使用Docx4j库。

最佳答案

您需要添加到相关的表行(w:tr):

<w:trPr>
  <w:tblHeader />
</w:trPr>


有关如何执行此操作,请参见http://www.docx4java.org/forums/docx-java-f6/insert-a-tableheader-t237.html

有关元素的更多信息(来自ISO / IEC 29500-1 1st Edition),请参见http://msdn.microsoft.com/en-us/library/documentformat.openxml.wordprocessing.tableheader.aspx

10-08 02:49