使用POI Word API,如何在后续页面上重复表格标题? [英] With POI Word API, how to repeat a table heading on subsequent pages?

查看:720
本文介绍了使用POI Word API,如何在后续页面上重复表格标题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Apache POI 3.12生成包含XWPFTable的Word文档. 在MS Word界面中,您可以通过检查表本身的属性来在后续页面上重复表标题.

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.

如何使用XWPFTable API进行相同操作?

How do you do the same using the XWPFTable API ?

推荐答案

行级别.有方法

row.setHeader(true);

POI中应该存在类似的东西.

Something similar should exist in the POI.

这篇关于使用POI Word API,如何在后续页面上重复表格标题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆