开发者

itextsharp Modifying Table Header Row on Page break

开发者 https://www.devze.com 2023-02-10 05:37 出处:网络
I am using itextsharp pdfptables in columns. I have a table that is very long and goes ac开发者_JS百科ross multiple pages. The header, \"XYZ\", repeats as it should but I want the header to be \"XYZ -

I am using itextsharp pdfptables in columns. I have a table that is very long and goes ac开发者_JS百科ross multiple pages. The header, "XYZ", repeats as it should but I want the header to be "XYZ - Continued" on subsequent pages. I have tried looking for an event in the table but no luck!

I am working in VB.net but samples in C# work too.

Any help is appreciated!


I recommend taking a look at PdfPTableEvent.

There's also a document level page event, though it's not as helpful in this case.

I think you'll need a partially blank header, and then have to fill in the variable parts during your PdfPTableEvent callbacks.

Yes, this documents the Java version of iText. However, all the methods are identical, or very nearly so. Your IDE should help you iron out any differences.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号