Word and Page Numbering

I have an 11 page Word document that is filled in by a Delphi application.
When I print the filled in document from my Delphi app, the page numbers
refuse to cooperate!  The always appear as  1 of 1, 2 of 2, 3 of 3, etc.  If
I simply print the document from Word, everything is fine.  I've tried
messing with different views, background repagination, forcing repagination
prior to printing, etc.  Nothing works!  I can't sort this out.  Any ideas?
I'm using Word 2000 (9.0.2720) and Delphi 5.0.

Thanks.