Home |
Search |
Today's Posts |
#1
|
|||
|
|||
How does Word calculate single line spacing
I need to put numbers down the side of a page for a set of legal documents.
Built in line numbering is no good because it doesnt number blank lines caused by space after the paragraph so I have written code to calculate the position of each line and place a number in a text box next to the line. Even though all font sizes are 12 (Arial and TNR), the numbers fall out of line when line numbering is single. Why is this so? Thanks Tim |
#2
|
|||
|
|||
Every font has a certain amount of built-in leading, so Single line spacing
will vary between fonts. -- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA Word MVP FAQ site: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. "Tim" wrote in message ... I need to put numbers down the side of a page for a set of legal documents. Built in line numbering is no good because it doesnt number blank lines caused by space after the paragraph so I have written code to calculate the position of each line and place a number in a text box next to the line. Even though all font sizes are 12 (Arial and TNR), the numbers fall out of line when line numbering is single. Why is this so? Thanks Tim |
#3
|
|||
|
|||
If you're using W2003, you can determine the vertical position of each line
through the Lines() collection -- activedocument.activewindow.Panes(1).Pages(1).Rect angles(3).Lines(1).Top This bit of object modelling is somewhat mysterious, and the documentation is MS at its absolute worst. From what I've been able to work out: You have to be in Print view for it to work, and the number of Rectangles on each page depends on your layout. If you have headers and footers, the body of the page seems to be Rectangle(3) .... but there may be other factors. Alternatively, you can physically select each line and use the Information() property to get its vertical position. "Tim" wrote in message ... I need to put numbers down the side of a page for a set of legal documents. Built in line numbering is no good because it doesnt number blank lines caused by space after the paragraph so I have written code to calculate the position of each line and place a number in a text box next to the line. Even though all font sizes are 12 (Arial and TNR), the numbers fall out of line when line numbering is single. Why is this so? Thanks Tim |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
how can you create quickwords in MS Office Word 2003 | Microsoft Word Help | |||
How do I create & merge specific data base & master documents? | New Users | |||
In typing dates in Word, i.e. "January 12" how do you keep the "1. | Microsoft Word Help | |||
WordPerfect - copying formatting | Page Layout | |||
How do I convert a cd in word perfect to microsoft word | Microsoft Word Help |