Disable one image from printing in ms Word

C

cronoklee

Hi I have a large image in the header of a word document that I do not
want to print. I'm printing onto headed notepaper and I want to show a
preview of how the whole page will look. It needs to work on older
versions of word as well as 2007. Is this possible please?

Thanks a lot,
Ciarán
 
D

Doug Robbins - Word MVP

Bookmark the image (in the following code, the bookmark name used was logo)
and then run the following macro which will toggle the display of the image
that is contained within that bookmark. To prevent it from printing, you
will also need to uncheck the Print Option for Hidden text.

With ActiveDocument
If .Bookmarks.Exists("Logo") Then
With .Bookmarks("Logo").Range.Font
If .Hidden = True Then
.Hidden = False
ActiveWindow.View.ShowHiddenText = True
Else
.Hidden = True
ActiveWindow.View.ShowHiddenText = False
End If
End With
Else
Exit Sub
End If
End With


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
Hi I have a large image in the header of a word document that I do not
want to print. I'm printing onto headed notepaper and I want to show a
preview of how the whole page will look. It needs to work on older
versions of word as well as 2007. Is this possible please?

Thanks a lot,
Ciarán
 
C

cronoklee

Bookmark the image (in the following code, the bookmark name used was logo)
and then run the following macro which will toggle the display of the image
that is contained within that bookmark.  To prevent it from printing, you
will also need to uncheck the Print Option for Hidden text.

With ActiveDocument
    If .Bookmarks.Exists("Logo") Then
            With .Bookmarks("Logo").Range.Font
                If .Hidden = True Then
                    .Hidden = False
                    ActiveWindow.View.ShowHiddenText = True
                Else
                    .Hidden = True
                    ActiveWindow.View.ShowHiddenText = False
                End If
            End With
    Else
        Exit Sub
    End If
End With

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.


Hi I have a large image in the header of a word document that I do not
want to print. I'm printing onto headed notepaper and I want to show a
preview of how the whole page will look. It needs to work on older
versions of word as well as 2007. Is this possible please?

Thanks a lot,
Ciarán

Cool thanks a lot , I'll give it a shot!
Ciarán
 
M

macropod

Hi cronoklee,

You could do this with a field coed as:
{IF{PRINTDATE \@ yyyyMMddHHmm}= {DATE \@ yyyyMMddHHmm} "" "Your image goes here."}


Notes:
1. Pressing F9 or print preview restores the display. However, since the PRINTDATE field doesn't support seconds, you might have to
wait up to a minute before you can restore the display after printing.
2. The field brace pairs (ie '{ }') for the above example are created via Ctrl-F9 - you can't simply type them or copy & paste them
from this message.

--
Cheers
macropod
[Microsoft MVP - Word]


Hi I have a large image in the header of a word document that I do not
want to print. I'm printing onto headed notepaper and I want to show a
preview of how the whole page will look. It needs to work on older
versions of word as well as 2007. Is this possible please?

Thanks a lot,
Ciarán
 

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