Page Numbers In Headers Counting Current Page

DocumentID: 650614
Revision Date: 29-Feb-96 8:29:00 PM

The information in this document applies to:
WordPerfect® 5.1 for DOS

Problem

Solutions: Many users request a feature which allows the user to create a document header that lists both the current page number and the total page count of the document. They want the header of a 24 page document to read "Page 4 of 24". To create a dual page number header, put a cross reference marker at the end of the document and then include a reference to that marker in your header. To do so, move the cursor to the end of the document and press Mark Text (Alt-F5), 1 Cross-Ref, and 2 for Mark Target. At the Target Name: prompt, type a name such as "ENDFILE" for the end-file marker. Because this is a target marker it will display only in Reveal Codes. Now go to the beginning of the document and press Format (Shift-F8), 2 Page and 3 for headers. Select 1 for Header A, and 2 for Every Page to create a header. (type the first part of the header - including the ^B (Ctrl-B) code for the current page number: (Page ^B of.) Where you want the total page number to appear, press Mark Text (Alt-F5), 1 Cross Reference, 1 for Mark References, and 1 for Page Number. When you see the Target Name: prompt, type the name used at the end of the file (i.e., ENDFILE) and press ENTER. When you press ENTER a question mark will appear: (Page ^B of ?). This question mark represents the ENDFILE marker. After ending the document, generate by pressing Mark Text (Alt-F5), 6 Generate, 5 Generate Tables, Indexes, Cross-References, etc., (Y). The question mark will be converted into the total page number, i.e., Page ^B of 24. This information was taken from the April 1990 issue of the WordPerfect Magazine. The article was entitled Hidden Treasures written by Ralph Blodgett and begins on page 48.

Answer:

Details:

Product specifications, packaging, technical support and information (*Specifications*) refer to theUnited States retail English version only. Specifications for other versions may vary. All Specifications, claims, features, representations, and/or comparisons provided are correct to the best of our knowledge of the date of publication, but are subject to change without notice.OUR MAXIMUM AGGREGATE LIABILITY TO YOU AND THAT OF OUR DEALERS AND SUPPLIERS IS LIMITED. IT SHALL NOTEXCEED THE AMOUNT YOU PAID TO ACCESS THE INFORMATION. SEE LEGAL DISCLAIMER.