I’m creating pdf from xml using C# .net
Page numbering works fine, as long as everything stays on its single page. But as soon as you have a table that spans multiple pages, I get the header printed on the new page, but the page number of the current page doesn’t update.
So first page is: 1/2
and second page is: 1/2, which should be 2/2
How do I set the correct page numbering?
I’m currently setting the header like the following, but see attachment testTemplate.zip (832 Bytes) for a full example
<Header> <Margin Top="20" /> <Table ColumnAdjustment="AutoFitToWindow"> <Row> <Cell> <TextFragment> <TextSegment></TextSegment> </TextFragment> </Cell> <Cell Alignment="3"> <TextFragment> <TextSegment>Page $p / $P</TextSegment> </TextFragment> </Cell> </Row> </Table> </Header>