如何在每个页面上重复iTextSharp PdfPTable的标题? [英] How can I repeat the headers of an iTextSharp PdfPTable on each page?

查看:159
本文介绍了如何在每个页面上重复iTextSharp PdfPTable的标题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何让iTextSharp在生成的PDF的每一页上重复PdfPTable的标题?

How can I get iTextSharp to repeat the headers of a PdfPTable on each page of the generated PDF?

推荐答案

你刚才需要将 PdfPTable.HeaderRows 属性设置为 PdfPTable 标题中的行数,如下所示:

You just need to set the PdfPTable.HeaderRows property to the number of rows in your PdfPTable's header like this:

table.HeaderRows = 1;

这篇关于如何在每个页面上重复iTextSharp PdfPTable的标题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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