Results 1 to 8 of 8
  1. #1
    New Lounger
    Join Date
    Apr 2003
    Location
    Cincinnati, Ohio, USA
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Last Page Footer (XP)

    Is there any easy way to set up a template to print a footer only on the last page. Have a user who wants to print the full path and file name (easy), in the footer (easy), but ONLY on the last page of the document (doh!).

    Is there a way to put some logic in the footer to say only on last page? Sections don't work for this application.

    Thanks for any insights.

  2. #2
    Bronze Lounger
    Join Date
    Jan 2001
    Location
    La Jolla, CA
    Posts
    1,468
    Thanks
    30
    Thanked 61 Times in 57 Posts

    Re: Last Page Footer (XP)

    Try something like this (need to use CTRL+F9 to insert the field codes):

    { if { page } = { numpages } "{ filename p }" * MERGEFORMAT}

  3. #3
    New Lounger
    Join Date
    Apr 2003
    Location
    Cincinnati, Ohio, USA
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Last Page Footer (XP)

    Thaks for the quick reply... I tried going down that path with:
    IF {PAGE} = {NUMPAGES} "FILENAME p" "XX" * MERGEFORMAT
    but it evaluates to xx on every page. I even had the footer print this field, then PAGE, then NUMPAGES to see that PAGE changes, but even when the two are equal, xx is the result. So I assumed that my "IF {PAGE} = {NUMPAGES}" is somehow improperly written, and always evaluates to FALSE (even checked on last page outside of footer).

    What is REALLY confusing is that your suggestion "if { page } = { numpages } "{ filename p }"" evaluates to "page" ?!?

  4. #4
    New Lounger
    Join Date
    Apr 2003
    Location
    Cincinnati, Ohio, USA
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Last Page Footer (XP)

    The "page" things is based on spaces. If I remove the extra spaces (i.e. use {page} instead of { page } it fails the same as mine).

    So.... why does Word think "{PAGE} = {NUMPAGES}" is false?

  5. #5
    Bronze Lounger
    Join Date
    Jan 2001
    Location
    La Jolla, CA
    Posts
    1,468
    Thanks
    30
    Thanked 61 Times in 57 Posts

    Re: Last Page Footer (XP)

    Make sure you have all the field braces inserted correctly. There are nested fields. That's probably your problem.

  6. #6
    New Lounger
    Join Date
    Apr 2003
    Location
    Cincinnati, Ohio, USA
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Last Page Footer (XP)

    OK, I am stumped, logically this should work:
    {IF {PAGE} = {NUMPAGES} "{FILENAME p}" "XX" * MERGEFORMAT}
    but it always evaluates to false. With one change (swap the true and false texts) it appears that Word is comparing text strings "PAGE" and "NUMPAGES" rather than the values of the fields. Is there something I need to do to make it compare the field value of PAGE with NUMPAGES.

    I have come to this conclusion because when I switch the texts (so the XX is true) it prints out {FILENAME p}, not the full name path.

  7. #7
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Last Page Footer (XP)

    I would suspect that not all braces are real field braces. You can't type { } - ever! You *must* insert them by pressing Ctrl+F9.

    I have attached a simple two page document with the nested field in the page footer. You will have to look at a print preview to update the document name.
    Attached Files Attached Files

  8. #8
    New Lounger
    Join Date
    Apr 2003
    Location
    Cincinnati, Ohio, USA
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Last Page Footer (XP)

    Thanks alot... what part of "(need to use CTRL+F9 to insert the field codes):" did I not understand! lol

    Works like a champ, simple, elegant and effective!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •