Cross Ref in footer not printing correctly

S

solarmfg

I have a large document of about 300 pages. The first 10 pages is a TOC
using roman numerals in the footer for the page number. The remaining pages
have a format of Page x of PageRef where PageRef is a cross-reference to the
page number of a bookmark on the last page.
When I print I get Page 1 of 1, Page 2 of 2.... rather than Page 1 of 283
(Which is displayed properly on the screen). I have found that if I view the
print preview of the document and print from there, I get the appropriate
page numbers. Is the a better way that I can get the footer to update before
printing.
P.S. I have the update fields and update links checked in the print options.

Thanks,
Corinne
 
H

Herb Tyson [MVP]

The value of the page number changes depending on your frame of reference.
Fortunately, Word has a built-in field to accomplish what you want: {
sectionpages }. The sectionpages field returns the number of pages in the
current document section, which should coincide with what you want (unless
your post-TOC document contains multiple sections).

If the latter is the case... there are other approaches (such as inserting
bookmarks at the beginning and end of the non-roman numbered section, then
using an = field to calculate the number of pages contained in the two
pageref values).
 
J

jkh

I recall a similar print issue when using the sectionpages field, too. We
used to get around it by either turning off background printing (Tools,
Options, Print) or by printing the pages in reverse order. Strange, but it
worked. I haven't run across this particular problem in quite a while.
 
S

solarmfg

I have 22 sections in the document.
So I need to create a bookmark on page 1 of the document.
How do I use an = to calculate the number of pages?
I am getting the correct number of pages on the screen by referencing the
page number of the bookmark on the last page, it just doesn't print out
properly unless I do a print preview and give it time to "Update" to the
correct page number, then it prints ok.
 
H

Herb Tyson [MVP]

Suppose you have a bookmark on page 1 named "FirstPage", and another
bookmark on the final page named "LastPage", the number of pages would be
LastPage - FirstPage + 1.

The page numbers on which FirstPage and LastPage occur are given by the
fields:


{ PAGEREF FirstPage \h }

{ PAGEREF LastPage \h }

Hence, the field code for the number of pages would be:


{= { PAGEREF FirstPage \h } + { PAGEREF LastPage \h } + 1}


--
Herb Tyson MS MVP
Author of the Word 2007 Bible
Blog: http://word2007bible.herbtyson.com
Web: http://www.herbtyson.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top