Word .NET > Tutorial > Page numbers

The example shows you how to add page numbers to a document.

C# example
VB example