Forum How do I...?

Add the number of the page in a table that is used in the page header

skoleva
Hello,

I have a small table in the page header like this:
<table id="header">
   <tr>
       <th rowspan="3">Table</th>
       <th>Column 1</th>
       <th>Column 2</th>
       <th colspan="2">Column 3 and 4</th>
       <th rowspan="2">Column 5</th>
   </tr>
   <tr>
       <td rowspan="2">Text 1</td>
       <td rowspan="2">Text 2</td>
       <th>Text 3</th>
       <th id="pageNumber">Text 4</th>
   </tr>
</table>

<style>
table
{
    border-collapse: collapse;
    font-size: x-small;
    text-align: center;
}
td, th
{
    border: 1px solid black;
}
</style>


I want to have the number of the page in a specific place in the table (for example, where is "pageNumber") - something like "Page 45 of 90".
The PDF will be created using C#.

Anyone has an idea how I can accomplish this?


Regards

Edited by skoleva

skoleva
Never mind, I got it.
I just set
#pageNumber
{
   content: \"Page \" counter(page) \" of \" counter(pages);
}