how do you lock elements from printing

R

rath

I have a pre-printed letter head. I would like to bring in an import of the
letterhead for layout purpose only so when I print the document out the
import doe not print. I could set the import to be transparent but that would
be too much trouble to to each time the file is printed out.
 
J

Jay Freedman

I have a pre-printed letter head. I would like to bring in an import of the
letterhead for layout purpose only so when I print the document out the
import doe not print. I could set the import to be transparent but that would
be too much trouble to to each time the file is printed out.

See http://sbarnhill.mvps.org/WordFAQs/Letterhead.htm, especially the
section "Creating a header for preprinted letterhead". That article
recommends just leaving a blank area the size of the letterhead/logo.

An alternative is to insert the letterhead/logo, design the rest of
the template around it, and then select the letterhead and set its
color to white so it doesn't print.

If the letterhead has to do double duty, both on screen and on paper,
then you would need a macro that changes the letterhead color to
white, prints the document, and then undoes the color change. This is
more complicated to set up, so don't do it unless you need it.
 
S

Suzanne S. Barnhill

Note, too, that if the letterhead is all text, you can set the font color to
white. If there are graphics involved, you need to set the brightness to
100% to keep them from printing.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org
 
G

Graham Mayor

You could use a macro in the template to print the document, having set the
font colour to white and the graphics brightness to 100%, then reset them
back again. This is simple enough to do if the letterhead text is all black,
but if you have used multiple styles or multiple colours in the letterhead,
you are going to have to record each colour and reset it again later. The
macro below is one I posted in response to a similar query some time back.
Note that the macro only affects the header (the first page header if it
exists). If you want to hide headers on other pages or footers, you will
have to treat them separately.


Sub PrintLetter()
Dim oHeader As Range
Dim i As Long
If ActiveDocument.Sections(1).Headers(wdHeaderFooterFirstPage).Exists Then
Set oHeader =
ActiveDocument.Sections(1).Headers(wdHeaderFooterFirstPage).Range
Else
Set oHeader =
ActiveDocument.Sections(1).Headers(wdHeaderFooterPrimary).Range
End If
With oHeader
.Font.Color = wdColorWhite
For i = .ShapeRange.Count To 1 Step -1
If .ShapeRange(i).Type = msoAutoShape Then
.ShapeRange(i).Fill.Visible = msoFalse
Else
.ShapeRange(i).PictureFormat.Brightness = 1#
End If
Next i
For i = .InlineShapes.Count To 1 Step -1
.InlineShapes(i).PictureFormat.Brightness = 1#
Next i
End With
ActiveDocument.PrintOut
With oHeader
.Font.Color = wdColorAutomatic
For i = .ShapeRange.Count To 1 Step -1
If .ShapeRange(i).Type = msoAutoShape Then
.ShapeRange(i).Fill.Visible = msoTrue
Else
.ShapeRange(i).PictureFormat.Brightness = 0.5
End If
Next i
For i = .InlineShapes.Count To 1 Step -1
.InlineShapes(i).PictureFormat.Brightness = 0.5
Next i
End With
End Sub

http://www.gmayor.com/installing_macro.htm

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
G

Graham Mayor

This thread has prompted me to revise one of my web pages on this subject.
The method shown at http://www.gmayor.com/Optionally_print_letterhead.htm is
an alternative to the method suggested here that caters for complex
letterheads including those that have continuation pages with different
header/footers.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

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