Header Height

  • Thread starter Ashish via OfficeKB.com
  • Start date
A

Ashish via OfficeKB.com

How to calculate Header Text height of a page programmatically and in general?

i.e.How much text is allowed in the header without expanding Header
automatically?
 
S

Stefan Blom

In File>Page Setup, you specify the top margin and a "From edge" value
which determines how far down from the page edge the header should
begin. So, assuming that "From edge" is smaller than the top margin,
the header height should be the top margin minus the value for "From
edge".

Note that the header area will grow to accommodate "excess" text. In
other words, its height is really dependent on the font, font size,
line spacing, and paragraph spacing of the text inside it. This also
applies if "From edge" is larger than the value for the top page
margin.

--
Stefan Blom
Microsoft Word MVP


in message
news:5935413423250@uwe...
 
S

Suzanne S. Barnhill

As Stefan has pointed out, the header expands automatically with any amount
of text. It expands downward rather than upward, however; the header margin
specifies where the top line of the header will be. As a general rule, using
Word's default font, Header style, and margins (1" Top and 0.5" Header), you
can get two lines of header text before it starts intruding on the document
body. Anything more than one line will really be uncomfortably close to the
document body.

If you want to maintain a specified distance between the header and the
text, regardless of the depth of the header, the best plan is to add this
amount to the Header style as Space After, which will ensure that the header
paragraph will always (if necessary) push the document body down enough to
leave this space. If Space After is added to the Header style, make sure to
use line breaks rather than paragraph breaks within the header. Otherwise,
add the space only to the last line in the header.
 
Top