c# - Can I replicate the table header when a table keep on in more pages? -


i have following situation creating pdf itextsharp.

i have pages contains tables. happen table begin in page , keep on in following page.

i want know if, when table keep on in following page, possible "replicate" table header in new page.

for example if table begin in page 1 , keep on in table 2 want have following situation:

the table begin header in page 1 , keep on in page 2 @ beginning of page 2 have again table header. happen table in microsoft word.

can it?

tnx

you asking called "repeating table headers". can find examples on official itext site on page keyword pdfptable > header rows.

for instance, if have instance of pdfptable named table, , first 2 rows you've been adding header, can define them header rows this:

table.setheaderrows(2); 

if want c# version of examples taken book, can find them here: http://tinyurl.com/itextsharpiia2c04

these examples show syntax in c# different, still easy:

table.headerrows = 1; 

in line, tell table first row header row should repeated.


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -