There isn't a solution. What is happening is that the RTF file you generate is text with markup codes. When it is opened with MS Word (or other RTF reader) Word opens the text file and goes through parsing the file in order to render the text with the markup present. The page x of y is calculated (i.e. it does not appear in the text until generated) once the markup is processed and the output almost generated, therefore there is a certain lag. Scrolling down or doing any of that will update it. If you for instance take a large file - say 70 odd pages you will actually see Word processing its internal counts as it loads and process, i.e page 1 of 1, followed by 2 of 10, followed by 6 of 70, after Word has processed the whole document though it will appear correctly and printing the file to PDF or saving the file as .docx will embed the page numbers in.
... View more