| Title: | Microsoft Windows 95 ("Chicago") | 
| Notice: | Please read topics 1 to 22 before writing anything | 
| Moderator: | EEMELI::BACKSTROM | 
| Created: | Sun Nov 13 1994 | 
| Last Modified: | Fri Jun 06 1997 | 
| Last Successful Update: | Fri Jun 06 1997 | 
| Number of topics: | 2958 | 
| Total number of notes: | 19968 | 
    I want to insert pagenumbers in my word document in the form
    
    	1/3, 2/3, 3/3 
    
    for a three-page document. No problem, I use insert field to
    insert Page "/" SectionPages in the footer.
    
    My problem starts when I want no page number if my document 
    consists of only one page (1/1 looks so silly...).
    
    I've tried to use an "if" field to accomplish this, but to no
    avail. 
    What are the incantations I need to work this miracle?
    
    Thanks, Rien.
    
    (Cross-posted in MSWINDOWS)
                             
| T.R | Title | User | Personal Name | Date | Lines | 
|---|---|---|---|---|---|
| 2816.1 | STAR::PITCHER | Steve Pitcher/Pathworks for OpenVMS | Tue Feb 25 1997 08:23 | 3 | |
|     Try asking in BOOKIE::WINWORD.
    
    -	stp
 | |||||
| 2816.2 | Separate 1st page header is a work around... | NWD002::FEIGLE | Thu Feb 27 1997 01:07 | 14 | |
|     Funny, I don't use Page and SectionPages.  I use the fields page number
    and number of pages in the footer.  I've never used the "if", but the
    simple method might be to never have a page number on the 1st page. 
    I.E.  set it up so that your first page header/footer is different from
    the rest.  I think this is right in the document setup fields.
    
    And I kind of like the idea.... so please share your solution. 
    However, I disagree with one item... Page 1/1 on the bottom is quite
    informational, as it tells me for sure that nothing else follows. I'd
    suggest leaving it....  My template has a x/y page numbering for all
    pages... but you know, those folks from the midwest can be "simple"...
    that's me...
    
    jff
 | |||||
| 2816.3 | UTRUST::TIMMER | Semper TECO! | Fri Feb 28 1997 14:44 | 9 | |
|     I figured it out by myself (by reading the fine manual carefully...)
    
    { if {SectionPages} = 1 "" "{Page} / {SectionPages}" \* MERGEFORMAT }
    
    In order to be able to see and type in this stuff, use Alt-F9 to make
    the codes visible, and use Ctrl-F9 to generate the {}-pairs.
    
    Rien.
    
 | |||||