View Single Post
 
Old 10-09-2015, 01:10 AM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

To do this with field coding, you could use the combination of an ASK field and an IF field.

The ASK field might be coded as: {ASK ShowHide "Display Logo (Y/N)?"}

The IF field for each image you want to conditionally show or hide might be coded as:
{IF{REF ShowHide \* Caps}<> "N*" "put image or its anchor here"}

Simply put the image or its anchor between the double-quotes surrounding the 'put image or its anchor here' text (which you can delete). With this approach, you'll get a pop-up any time the document is printed. Answering anything other than something beginning with N or n will cause the image to display and, hence, print.

Note: The field brace pairs (i.e. '{ }') for the above examples are all created in the document itself, via Ctrl-F9 (Cmd-F9 on a Mac); you can't simply type them or copy & paste them from this message. Nor is it practicable to add them via any of the standard Word dialogues. The spaces represented in the field construction are all required.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote