Add page Number, Repeat Header Column In RTF

How to add page number in RTF

<?initial-page-number:1?>Page 1 of 1

If there is a requirement to add current page number and total page number in body of RTF template not in header and footer. Please check following.

For current page number, use <fo:page-number xdofo:report-page-number="true"/>

For total page number, use <?fo:page-number-citation:xdofo:lastpage-totalpg?>

How to repeat header column name in output

  1) Select the all columns
  2) Right click
  3) Select
  4) Table Properties
  5) Row Tab
  6) Check the check box of (Repeat as header row at the top of each page)