Thanks for the reply. Unfortunately I'm new to ASPOSE.PDF and doing an evaluation to find out this can fit into our project requirement and if yes go for a purchase.
Well..
my page has a header and footer.
Then a tableheader and several data rows.
Page Header
Table header.
Table rows.
Footer.
As there is only one table, I'm getting the table header only once.
Other wise if I can add a table header as page header, that could be a solution.
Thank you very much for your help. It really solved the main problem.
Can I ask something more.
Basically I am retrieving the data for the main table using a dynamic search criteria. Now my output for the main part is coming perfect with table.IsFirstRowRepeated = True.
I can make the report more acceptable if I can print and repeat the "search criteria" on top of each page. Since I am not sure where the page is splitted, I can't add it programatically (sorry I'm not experienced in aspose.pdf). So If I can create a table in the header section, it should be available on top of each page, correct?
You can try creating a section for each "search criteria" and put the "search criteria" in the header of each page in the section. If you don't want each section starts a new page, please set the Section.IsNewPage to false.
Dim sectionIndex As Integer For sectionIndex = 0 To 10 Dim sec As Section = pdf.Sections.Add
Dim header As HeaderFooter = New HeaderFooter sec.OddHeader = header sec.EvenHeader = header
Dim text1 As Text = New Text("header") header.Paragraphs.Add(text1) text1 = New Text("Search Criteria " + sectionIndex.ToString()) header.Paragraphs.Add(text1)
Dim footer As HeaderFooter = New HeaderFooter sec.OddFooter = footer sec.EvenFooter = footer
text1 = New Text("footer") footer.Paragraphs.Add(text1)
Dim rowIndex As Integer Dim table As Table = New Table sec.Paragraphs.Add(table) table.ColumnWidths = "100" table.IsFirstRowRepeated = True table.DefaultCellBorder = New BorderInfo(BorderSide.All)
Dim row As Row = table.Rows.Add row.Cells.Add("table header") For rowIndex = 0 To 100 row = table.Rows.Add row.Cells.Add("row " + rowIndex.ToString()) Next