Trying to add a paragraph in my footer to reflect current page/total pages and another line showing the Revision number (or Field called RevNum.) Here is the code I am trying (page numbers work, Revnum is just empty:
table.Rows[0].Cells[0].Blocks.Add(
new Paragraph(document,
new Run(document, "Page "),
new Field(document, FieldType.Page),
new Run(document, " of "),
new Field(document, FieldType.NumPages)));
table.Rows[0].Cells[0].Blocks.Add(
new Paragraph(document,
new Run(document, "Version "),
new Field(document, FieldType.RevNum)));